What is Inheritance in Java?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please Disable the AdBlocker to Continue to the site.
In Java, inheritance refers to the concept of a class’s properties being inherited by another. It facilitates code reuse and creates a connection between different classes. Inheritance is carried out between two sorts of classes:
– Parent class (Super or Base class)
– Child class (Subclass or Derived class)
While a class whose properties are inherited is known as the parent class, a class that inherits the properties is called the child class.