News

S.method1(); // allowed and will invoke the method1 inherited from Super class by Sub class S.method2(); // allowed and will invoke the overridden method2 from Sub class // if method2 wasn't getting ...
Dynamic method dispatch is also known as run time polymorphism. It is the process through which a call to an overridden method is resolved at runtime. This technique is used to resolve a call to an ...