Computer Science, asked by preetipawar4912, 8 days ago

Explain inheritance in java?​

Answers

Answered by ansarisiraj4634
2

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...

hope it will be helpful for you...

Answered by thomsonpjames55555
0

Answer:

Inheritance can be defined as the process where one class acquires the properties (methods and fields) of another. With the use of inheritance the information is made manageable in a hierarchical order.

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).

PLEASE MARK BRAINLIEST

Similar questions