explain the concept of inheritance with an example?
Answer Posted / muthusenthil
Inheritance is a process by which an object inherits parent
object quality.inheritance gives reusability
Consider a class Man derived class of Monkey an object of
man inherits some of monkeys qualities and overrides some
qualities like walking straight with two legs and have
additional functions like speach etc..
| Is This Answer Correct ? | 29 Yes | 7 No |
Post New Answer View All Answers
Can we create constructor in abstract class ?
What is a method in coding?
Define Multiprogramming and Multiprocessing in java.
How can you read content from file in java?
What are the features in java?
What is the core java?
Can an interface have a constructor?
What package is math in java?
Can a class be private or protected in java?
What is the argument in java?
what is a green thread? : Java thread
What is the difference between interface & abstract class?
What is the multi-catch block in java?
what state does a thread enter when it terminates its processing? : Java thread
Why can we not override static method?