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 the declaration statement?
What do you understand by Header linked List?
What are recursive functions? Give some examples?
How does a cookie work in Servlets?
write a program that list all permutations of ABCDEF in which A appears before B?
Is java a utf 8 string?
Can I overload to string method
How does predicate work in java?
What is the symbol for average?
Can we rethrow the same exception from catch handler?
What are static variables and functions?
What are keywords in java?
What is array command?
what is the purpose of "virtual"?
What differences exist between iterator and listiterator?