Inheritance in JavaIn Java, when an 'Is-A' relationship exists between two classes we use InheritanceThe parent class is termed super class and the inherited class is the sub classThe keyword 'extend' is used by the sub class to inherit the features of super classInheritance is important since it leads to reusability of codeJava Inheritance Syntax: - Study24x7
Social learning Network
05 Apr 2019 10:20 AM study24x7 study24x7

Inheritance in JavaIn Java, when an "Is-A" relationship exists between two classes we use InheritanceThe parent class is termed super class and the inherited class is the sub classThe keyword "extend" is used by the sub class to inherit the features of super classInheritance is i...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles