can u give some realtime example in ploymorphism? and
inheritance?

Answer Posted / nazneen

Polymorphism applies to Overriding
Inheritance applies to Reusability of code defined earlier in one Class and later on used by Other Classes..

Is This Answer Correct ?    14 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why HttpServlet class is declared abstract?

858


How will two or three servlets interact or communicate with each other?

1152


What is java servlet session?

729


what is servlet chaining?

826


How to generate the server side programming and the advantages of it over the other languages?

776


How a servlet is unloaded?

800


What is the difference between forward () and sendredirect () functions in servlet? Explain

752


What are life cycle methods of a servlet?

781


What exactly is a servlet?

713


Define context initialization parameters.

785


What is ServletContext object?

840


What are the disadvantages of storing session state in cookies?

889


What is the difference between the servlets and cgi programs?

736


What is the requirement of servlet config and servlet context implemented and how are they implemented?

751


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

769