Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object.
2
Anonymous
31 Jul 2021
Inheritance is the capability an object has to inherit characteristics from a parent object. A Class can be inherited by another class BMW, MERCEDES, and so on, because the parent class has characteristics that are common between those vehicles.