What Is Inheritance In Java ༄?
IB me.
Answers
Answered by
3
Answer:
Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object. ... The idea behind inheritance in Java is that you can create new classes that are built upon existing classes. When you inherit from an existing class, you can reuse methods and fields of the parent class.
Answered by
2
Answer:
Inheritance can be defined as the process where one class acquires the properties (methods and fields) of another. ... The class which inherits the properties of other is known as subclass (derived class, child class) and the class whose properties are inherited is known as superclass (base class, parent class).
Hope it helped you mate
Please mark me as the brainliest
Similar questions