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
Is integer passed by reference in java?
Describe how to implement singleton design pattern in struts.
What is meant by vector class, dictionary class, hash table class, and property class?
What is the use of parseint in java?
Enlist few advantages of inheritance?
What is object data type?
Explain about strings in java?
Explain about procedural programming language or structured programming language and its features?
Can you inherit from an abstract class java?
Can we have try block without catch block?
What is the gregoriancalendar class in java programming?
What Is Composition?
When is finally block not called?
Is empty in java?
difference between byte stream class and character stream class?