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
What is the function of static in java?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is autoboxing in java?
What is native method in java?
What is threaded programming and when is it used? : Java thread
Why collection doesn’t extend cloneable and serializable interfaces?
Can we change the value of static variable?
Is ++ operator is thread safe in java?
Is empty list java?
What about instanceof operator in java?
What is the loop in java?
What is the use of 'super' keyword inside a constructor?
What is a parameter in a function?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is the method overriding?