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 java beans?
What does java ide mean?
Explain the difference between jvm and jre?
What are the principle concepts of oops?
How does hashset work in java?
What causes memory leaks in java?
What will be the initial value of an object reference which is defined as an instance variable?
What is initial size of arraylist in java?
What is the difference between processes and threads?
What’s the difference between the methods sleep() and wait()?
Why multiple inheritance is not supported by java?
How to make a non daemon thread as daemon?
How many bits is a float?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
Explain enumeration in java?