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 do you understand by synchronization? : Java thread
Is a boolean variable?
What is polymorphism and what are the types of it?
Why is inheritance used in java?
How do you make an arraylist empty in java?
How the metacharacters are different from the ordinary characters?
What is java english?
What is flag in java?
Why to use nested classes in java?
What is lazy programming?
Can we overload run() method in java?
How much is a java license?
What are the data types supported by java? What is autoboxing and unboxing?
What is native method in java?
What is the advantage of OOP in java?