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
How do you configure a centralized error handler in servlets?
How do you invoke a servelt?
What is difference between server and servlet?
Define context initialization parameters.
How do you deal property files in servlet?
What is called Session Tracking?
What is Servlets and explain the advantages of Servlet life cycle?
Who is responsible to create the object of servlet?
Which interface should be implemented by all servlets?
What is the
Describe in brief RequestDespatcher?
Explain Action Servlet?
Is it possible to have a constructor inside the servlet?
What do you understand by mime type?
What are the differences between servlet context vs servlet config?