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
What is executor memory?
What are internal and external variables?
What are methods and how are they defined?
Is list ordered in java?
What is an example of a boolean?
What is the public field modifier?
What super () does in java?
What are the types of relation?
Explain what do you mean by functional overloading in java?
Can we override constructors in java?
How to compare strings in java?
How many tetrahedral voids are there in bcc?
Can extern variables be initialized?
What is arrays sort in java?
Can we override private method in java?