explain the concept of inheritance with an example?

Answer Posted / kk

Inheritance is the process of extending the properties of super class to sub class(methods and variables) if required overriding the properties(methods)
eg...
child having(extended) the Characters(Behavior) of father.

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is linkedlist in java?

512


What is type parameter in java?

523


why not override thread to make a runnable? : Java thread

559


what is the difference between future and callable interface in java?

608


How will you serialize a singleton class without violating singleton pattern?

1527






How to create a thread in java?

607


what is interface in java? Explain

536


Can constructor be protected in java?

513


What is the base class in java from which all classes are derived?

521


What is byte data type?

550


What is a java list?

587


What is floating data type?

541


What is final keyword in java? Give an example.

578


How do you create a reference in java?

512


Why do we need autoboxing in java?

523