can u give some realtime example in ploymorphism? and
inheritance?
Answer Posted / suresh
inheritance is hierarchy of class,that is one class derived
from another class
example:
grant father
--father
--son
polymorphism is the ability to take more than one form
example:
compile time polymorphism
--method overloading
people can act many role in the world
home:father
company:employee
run time polymorphism
--method overriding
dog is a class
It contains smile method
| Is This Answer Correct ? | 36 Yes | 15 No |
Post New Answer View All Answers
List some life cycle methods of a servlet.
Explain servlet events?
What is a servlet context?
Can you create a deadlock condition on a servlet?
What are the functions of Servlet container?
What are the functions of an intercepting filter?
What is the need of servlet filters?
What is the functionality of actionservlet and requestprocessor?
How do you run a servlet?
What are the two important api's in for servlets?
What is servlet container?
What are the life-cycle methods for a servlet?
What is a servlet context object?
Whether we can get deadlock situation in servlets?
How to create war file?