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
How to create a custom exception?
How do you start a new line in java?
What does java edition mean?
Discuss 2D arrays.
What happens if an exception is throws from an object's constructor?
How many functional interfaces does java 8 have?
Is java 11 paid version?
How use .contains in java?
What is an interface in java?
What is abstraction in java?
Which command from the jdk compiles a java program?
What exactly is methodology?
What does bitwise or mean?
What is enhanced loop in java?
What are the methods to rectify ambiguities in the interfaces in JAVA?