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

Answer Posted / sai vamsi krishna

An Inheritance is to access the properties from super class to sub class.
example father to son sometmes the father has some diseases like sugar,BP those are attacking to son also.
poymorphism means many forms
example one person acts as many roles in his life a person works at company he is a employee at the same time he is a father of his son.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which java framework is most popular?

662


How many servlet objects are created?

655


How can you push data from an Applet to a Servlet?

700


What is difference between cookies and httpsession?

641


Explain Action Servlet?

716






What is lazy loading and what is Generic Servlet Class?

694


What are some disadvantages of storing session state in cookies?

671


What's the servlet interface?

691


What are the types of an http request?

656


Explain the servlet filter.

630


How can we include static files in the jsp page?

684


How to commuincate between an applet and a servlet?

671


Name the different ways of session tracking.

657


How do we go with database connection and log4j integration in servlet?

791


Explain their methods? Tell me their parameter names also have you used threads in servlet?

671