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
What is are packages?
What is collections framework?
How do you escape in java?
Explain the concept of hashtables?
What state does a thread enter when it terminates its processing in java programming?
What is the benefit of inner / nested classes ?
When do we use synchronized blocks and advantages of using synchronized blocks?
Which methods cannot be overridden in java?
What is pojo class in java?
What is native method in java?
What is java and its types?
What is void in java?
What is the difference between jdk, jre, and jvm?
Name four container classes.
What is an object class?