Define inheritance explain different forms of inheritance
Answers
Answered by
3
Answer:
inheritance is a mechanism in which one class acquires the property of another class.
Answered by
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
Social Sciences,
8 months ago
Computer Science,
8 months ago
Physics,
1 year ago
Physics,
1 year ago