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
Should a main method be compulsorily declared in all java classes?
What is unmodifiable list in java?
What is a predicate method?
What is charat ()?
How do I get the | symbol on my keyboard?
What’s the difference between applets and standalone program?
How many bytes is a string java?
What does the “static” keyword mean? Can you override private or static method in java?
why using interface interface ?
Difference between static binding and dynamic binding?
Is string pool garbage collected?
What are the differences between checked exception and unchecked exception?
Where is singleton pattern used?
Can we use static class instead of singleton?
What is the primary benefit of encapsulation?