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
Give a brief description of java socket programming?
Where are local variables stored?
what is synchronization? : Java thread
What is reverse function?
how to run ecllipse with jettyserver for windows environment using batch file
What are runtime exceptions?
How do you check if an arraylist is not empty?
Does substring start with 0?
What are accessor methods in java?
What is the difference between stringbuffer and stringbuilder class?
What is navigable map in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What are the differences between Java 1.0 and Java 2.0?
If I only change the return type, does the method become overloaded?
How do you convert string to int in java?