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 bytecode in java ?
Can a abstract class be defined without any abstract methods?
Difference between process and thread?
What is meant by class?
What is a line separator in java?
What is ascii format?
What is the use of hashmap in java?
What is class level lock ?
What is the final keyword in java?
What do you mean by singleton class in java?
What is boolean data type in java?
Difference between string, stringbuffer and stringbuilder?
What is a java lambda expression?
What is meant by nested loop?
What is the purpose of java?