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
Mention a package that is used for linked list class in java.
What is intern method in java?
What is <> used for in java?
What is null mean in java?
Why do we need variables?
What is module in project?
Where can I find jdk in my computer?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What is the use of static methods?
How does hashset work in java?
What is lazy programming?
What is the use of coding?
Difference between static binding and dynamic binding?
Can we restart a dead thread in java?
How do you remove duplicates from an array in java?