What is inheritance in Java?
Answers
Answered by
5
Answer:
it is the ablitlityof an object of one class to acquire the properties of another, parent class.
hope you understand, pls mark as brainiest!
Answered by
1
Answer:
Explanation:In Java, Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object.
Note:
1.subclass (child) - the class that inherits from another class
2.superclass (parent) - the class being inherited from
Similar questions