+1 vote
in JAVA by
What is inheritance in Java?

1 Answer

0 votes
by

Inheritance is a mechanism in Java that allows you to create a new class based on an existing class. The new class inherits all the properties and behaviors of the existing class and can add or override them.

Related questions

0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
0 votes
asked Sep 11, 2022 in Scala Constructs by sharadyadav1986
...