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
Is map sorted in java?
What is java console application?
Is linked list a linear or non-linear data structure?
Why do we need singleton?
What is illegal identifier in java?
Convert a BST into a DLL and DLL to BST in place.
What is native code?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
What are the types of collections in java?
Difference between comparator and comparable in java?
Why we use methods in java?
How do you escape json?
What is variable and rules of variable?
What are encapsulation, inheritance and polymorphism?
what are three ways in which a thread can enter the waiting state? : Java thread