Tag: Super keyword
-
Method Overriding and Super keyword
Method Overriding: Declaring a method in sub class which is already present in parent class is known as method overriding. Overriding is done so that a child class can give its own implementation to a method (the same name, same parameters or signature, and same return type) which is already provided by the parent class. In this case the…