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 java beans?

577


What does java ide mean?

643


Explain the difference between jvm and jre?

564


What are the principle concepts of oops?

538


How does hashset work in java?

569






What causes memory leaks in java?

493


What will be the initial value of an object reference which is defined as an instance variable?

646


What is initial size of arraylist in java?

537


What is the difference between processes and threads?

538


What’s the difference between the methods sleep() and wait()?

543


Why multiple inheritance is not supported by java?

516


How to make a non daemon thread as daemon?

554


How many bits is a float?

546


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

598


Explain enumeration in java?

570