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 class level lock ?
How to declare an arraylist in java?
Can we sort a map in java?
What is the difference between hashmap and hashtable in java?
What is the difference between jdk, jre, and jvm?
What is the use of pattern in java?
What do you mean by data type?
How can I debug the Java security exceptions and AccessControlExceptions?
What are unchecked exceptions in java?
Why constructor has no return type?
Is a case study a method or methodology?
Can two objects have same hashcode?
What is string builder in java?
What is mean by exception?
What is type safety in java?