what is the need of Inheritance?

hey all i'm new to java and want to know about inheritance and their levels.please resolve my query.

  • Manav
  • 14 May
  • 39463 Views
  • 34 Answers
Your Answer

Inheritance is very essential for expandability.
Inheritance is used to declare characteristics of classes inheriting it,without giving its implementation.It is one of the most important concept of OOPS. After creating one super class you can use its features to create several sub classes that inherits some features from its parent class and have few additional features. Inheritance enables code reusability and saves time.

Core Java

Didn't get the answer.
Contact people of Talent-Core Java directly by clicking here