explain the concept of inheritance with an example?
Answer Posted / kush singh
Inheritance is a process of inheriting members and member functions of a particular class. This means one class can use the data members and functions of another similar class. This reduces efforts as similar data members or functions do not need to be declared again and again.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What does null mean in java?
What is array initialization in java?
Explain differences between checked and unchecked exceptions in java?
What does string [] args mean?
How to compare strings in java?
What is immutable state?
Can we write any code after throw statement?
Why lambda expression is used in java?
What is the history of java?
What are passing parameters?
Is boolean a wrapper class in java?
How we create object in copy constructor?
What is hashmap and map?
Why is java so important?
Can classes declared using the abstract keyword cab be instantiated?