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
Explain runtime exceptions?
Which is dependent variable?
what is mutual exclusion? : Java thread
What are the two categories of data types in the java programming language?
What is parsing a string?
Explain reverse a linked list iterative solution in java?
Why inputstreamreader is used in java?
Explain about the security aspect of java?
What will be the initial value of an object reference which is defined as an instance variable?
What are the different ways to handle exceptions?
What is t type java?
What is nextint java?
What is method reference in java?
What are different types of control structures?
What is the use of bufferedreader?