in JAVA by
Inheritance means one class can extend to another class. So that the codes can be reused from one class to another class.

Existing class is known as Super class whereas the derived class is known as a sub class.

Related questions

0 votes
asked May 24, 2019 in JAVA by rajeshsharma