explain the concept of inheritance with an example?

Answer Posted / chintan

Inheritance is the process by which new classes called
derived classes are created from existing classes called
base classes. The derived classes have all the features of
the base class and the programmer can choose to add new
features specific to the newly created derived class.

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of static in java?

800


How is it possible for two string objects with identical values not to be equal under the == operator?

775


What is autoboxing in java?

845


What is native method in java?

814


What is threaded programming and when is it used? : Java thread

800


Why collection doesn’t extend cloneable and serializable interfaces?

905


Can we change the value of static variable?

738


Is ++ operator is thread safe in java?

730


Is empty list java?

732


What about instanceof operator in java?

821


What is the loop in java?

830


What is the use of 'super' keyword inside a constructor?

781


What is a parameter in a function?

777


If system.exit (0); is written at the end of the try block, will the finally block still execute?

862


What is the method overriding?

850