+1 vote
in JAVA by
What is the purpose of inheritance in Java?

1 Answer

0 votes
by

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
asked May 12, 2021 in JAVA by rajeshsharma
+1 vote
asked May 14, 2019 in C Plus Plus by anonymous
0 votes
asked Feb 8, 2021 in JAVA by SakshiSharma
...