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

1 Answer

0 votes
by (30.6k points)

The purpose of inheritance in Java is to provide a way to create new classes that are based on existing classes. This allows you to reuse existing code, reduce the amount of duplicated code, and promote code modularity and organization.

Related questions

+1 vote
+1 vote
asked May 14, 2019 in C Plus Plus by anonymous
...