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
Explain the JDB in depth & command line.
What mechanism does java use for memory management?
Is main a keyword in java?
What is anagram number?
What is the difference between length and size in java?
What is early binding and late binding in java?
Explain an algorithm to find depth of a binary tree.
Why is java architectural neutral?
Can we override tostring method in java?
Can main() method in java can return any data?
Why do we use regex?
What is a lambda expression ? What's its use ?
What is the unit of plancks constant?
Explain the Propertie sof class?
What does system.gc() and runtime.gc() methods do?