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 compile-time polymorphism and runtime polymorphism?
What are different types of inner classes ?
Can a source file contain more than one class declaration?
What does .equals do in java?
How to implement an arraylist in java?
Why we use methods in java?
What is the length of a string?
What is treeset and treemap in java?
What does you mean in math?
What are passing parameters?
Difference between stack and queue?
What is the static method?
What is finalize()?
Why javac is not recognized?
What is the purpose of interface?