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

What is setattribute in servlet?

552


Write a program to show the functionality of doget and dopost method?

651


Why are http servlets used in programming?

546


Can servlet have a constructor ?

595


What is servlet and its advantages?

521






What are the differences between servlet context vs servlet config?

575


What is webservlet?

531


How can the session in servlet can be destroyed?

707


What is pure servlet?

696


What is the use of servlet wrapper classes?

667


Can you use javascript in servlets?

598


Should I override the service() method?

666


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2915


Is it good idea to create servlet constructor?

740


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

605