+1 vote
in JAVA by (30.6k points)
What is inheritance in Java?

1 Answer

0 votes
by (30.6k points)

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