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 use of a abstract variable?
when to use ArrayList and when to use HashMap in webApplication.
Can a boolean be null java?
What is use of super keyword in java?
What java is used for?
Should database connections be singleton?
What is the difference between a checked and an unchecked exception?
What is a bufferedreader?
What is method reference in java?
What are void methods?
Explain where variables are created in memory?
What is Java Shutdown Hook?
What is blank final variable?
What is wrapper class example?
Explain the difference between throw and throws in java?