Computer Science, asked by 6Shivam92, 1 year ago

What do you mean by inheritance? ​

Answers

Answered by divyasri12
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 tamannakapoor
2

HY dear..

Inheritance is a Mechanism wherein a new class is derived from as existing class.


divyasri12: hello
tamannakapoor: hy
6Shivam92: hi dear
tamannakapoor: hy
divyasri12: hi
6Shivam92: hello
6Shivam92: How are you?
tamannakapoor: f9
6Shivam92: are you single?
divyasri12: hello
Similar questions