What do you mean by inheritance?
Answers
Answered by
1
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.
Hope it helps..!!
MARK IT AS BRAINLIEST☺️☺️
Answered by
2
HY dear..
Inheritance is a Mechanism wherein a new class is derived from as existing class.
divyasri12:
hello
Similar questions