can any one tell me when do u go for inheritance and
polymorphism
Answer Posted / kishor kommulas
Inheritance:::
If you want to make use of the functionality of the method,
which is already there then you can go for the inheritance.
Polymorphism::::
If you want to use the same method name for different
method,then you can go for Polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we assign integer value to char in java?
How do you declare a string variable?
What is a conditional statement explain with example?
Is java based on c?
Explain abstract class in java?
How many bits is a word?
Is math an abstract class in java?
What is a qualifier in a sentence?
How many types of methods are there in java?
What is the set interface in java programming?
Compare java and python.
When should I use singleton pattern?
What is string builder?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Is set ordered?