1.what is inheritance?
-inheritance is one of the oops concepts in java.inheritance is concept of getting properties of one class object to another class object.
-Inheritance represents the IS-A relationship,also known as parent-child relationship.
2.what are the types of inheritance?
1.Multiple inheritance( java doesn’t support multiple inheritance).