Social Sciences, asked by tombasharma8582, 11 months ago

Define inheritance explain different forms of inheritance

Answers

Answered by siddharth5624
3

Answer:

inheritance is a mechanism in which one class acquires the property of another class.

Answered by Gunjalraj
0

hey mate...

Inheritance is the process wherein characteristics are inherited from ancestors. Similarly, in Java, a subclass inherits the characteristics (properties and methods) of its superclass (ancestor). For example, a vehicle is a superclass and a car is a subclass. ... The inheritance mechanism is very useful in code reuse.

Similar questions