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 are the two types of java?
What are the 6 mandatory procedures for iso 9001?
How to sort array in descending order in java?
Why is it called a string?
Explain the JDB in depth & command line.
What is the difference between array list and vector in java?
What is a boolean expression in java?
what is optional in java 8?
What method is used to specify a container's layout in java programming?
What is the private method modifier?
What is an object in java?
Which collection is sorted in java?
Why can't we make a class private in java?
What is the purpose of main function in java?
Write a java program to generate fibonacci series ?