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
What is the difference between a choice and a list?
What is the public field modifier?
What do you know about the garbage collector in java?
How to disable caching on back button of the browser?
What is the difference between heap memory and stack memory?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is string data type?
What is meant by null and void?
Can a class with private constructor be extended?
What is java util hashmap?
Is alive in java?
Does sprintf allocate memory?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
Is it possible to instantiate the abstract class?
What are the different collection views provided by maps?