What is inheritance?

Answer Posted / janet

Inheritence is the process of inheriting all the features
from a class. The advantages of inheritence are reusability
of code and accessibility of variables and methods of the
super class by subclassses.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to retrieve data from database in java using arraylist?

523


How are multiple inheritances done in Java?

618


what is anonymous class in java?

541


What is treeset and treemap in java?

576


What super () does in java?

482






What is java object name?

549


What are the basic control structures?

494


Why can't we override private static methods?

515


How to sort array of 0 and 1 in java?

541


Difference between Preemptive scheduling vs. Time slicing?

567


Why parameters should be passed by reference?

498


What is charat ()?

525


What is a container in a gui?

545


Explain the transient field modifier?

560


What is final keyword in java? Give an example.

574