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

Is integer passed by reference in java?

783


Describe how to implement singleton design pattern in struts.

774


What is meant by vector class, dictionary class, hash table class, and property class?

911


What is the use of parseint in java?

771


Enlist few advantages of inheritance?

845


What is object data type?

784


Explain about strings in java?

824


Explain about procedural programming language or structured programming language and its features?

790


Can you inherit from an abstract class java?

755


Can we have try block without catch block?

805


What is the gregoriancalendar class in java programming?

790


What Is Composition?

804


When is finally block not called?

826


Is empty in java?

810


difference between byte stream class and character stream class?

4311