DOWN CASTING Casting super class to sub class type is known as down casting. Down casting should be done explicitly Down casting is possible only on the already up casted… Continue reading "Down casting"
up casting Casting sub class to the super class type is known as upcasting Upcasting can be done either implicit or explicit. Implicit casting done by compiler. Up casting Example… Continue reading "up casting"