Categories
Core JAVA

Upcasting and Downcasting in java

Upcasting and Downcasting:- (Upcasting and Downcasting ) Java support Run-time polymorphism with the help of method overriding. Method overriding only applicable when the signature (prototype, return type, name, argument) of the superclass is the same as the subclass method, then it is known as method overriding. Dynamic method dispatch allows Java to supportĀ overriding of methods […]