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 * argv?
What is java thread dump, how can we get java thread dump of a program?
What is a file pointer?
Why is the singleton pattern considered to be an anti pattern?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
What is the difference between length and length() method in java?
How will you add panel to a frame?
who can i handle multiple client in RMI
What is multi-catch block in java?
How to perform linear search in java?
What is the difference between final, finally and finalize()?
how we can make a read-only class in java?
What is set in java?
What is singleton class example?
What is data and its types?