Saved Bookmarks
| 1. |
what is inheritance in java |
|
Answer» Ans :- Inheritanceis a mechanism wherein a new class is derived from an existing class. InJava, classes mayinheritor acquire the properties and methods of other classes. A class derived from another class is called a subclass, whereas the class from which a subclass is derived is called a superclass. |
|