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 static keyword?
What is jee6?
Difference between concurrent hashmap and hashtable and collections
What are the advantages of defining packages in java?
Highest level event class of the event-delegation model?
Why scanner is used in java?
How do you use compareto?
What are data structures in java?
What is an immutable object? How do you create one in java?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
Can we clone singleton object?
Explain illegalmonitorstateexception and when it will be thrown?
How do you find the maximum number from an array without comparing and sorting?
how to run ecllipse with jettyserver for windows environment using batch file
What are the fileinputstream and fileoutputstream?