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 a vector contain heterogenous objects?
What is the size of a string in java?
What is the relationship between class and object?
Does importing a package imports its sub-packages as well in java?
Is string a class?
What is the function of character?
What is the use of static class?
How do you delete a list in java?
How many bytes is double?
What are invisible components?.
Can we execute java program without main method?
Why string is called as immutable?
Is java util list serializable?
Can we serialize arraylist in java?
Explain the private protected method modifier?