explain the concept of inheritance with an example?
Answer Posted / shekar
Inheritence is the process by which one object acquires the
properties of another object. by using the extends keyword.
Adv:
It is easier to reuse code
Is This Answer Correct ? | 40 Yes | 5 No |
Post New Answer View All Answers
How to perform linear search in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
what are three ways in which a thread can enter the waiting state? : Java thread
Can Exception handling we can handle multiple catch blocks?
How to do encapsulation in java?
How static variable work in java?
How many digits can a float hold?
When is an object subject to garbage collection?
Is ++ operator thread-safe in java?
What is difference between final and immutable?
What is field name?
What is multi level inheritance in java?
What is primitive data type in java?
What is difference between hashset and hashmap in java?
Can list be null in java?