What is Inheritance in java?
1614
28-Mar-2015
Anonymous User
28-Mar-2015- For Method Overriding (so runtime polymorphism can be achieved).
- For Code Reusability.
The extends keyword indicates that you are making a new class that derives from an existing class.In the terminology of Java, a class that is inherited is called a super class. The new class is called a subclass.