Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why do we need servlet filter?

1112


What is servlet interface?

1279


Which protocol will be used by browser and servlet to communicate

1108


List some life cycle methods of a servlet.

1110


What is the major difference between servlet and applet?

1060


What are advantages of servlets over cgi?

1163


What is generic servlet class?

1124


What is the use of java servlet api?

1089


What are the new features added to servlet 2.5?

1153


Explain get and post.

1163


Can you send an authentication error from a servlet?

1028


How can we create deadlock situation in servlet?

1495


What are some disadvantages of storing session state in cookies?

1075


What's the servlet interface?

1122


What is setattribute in servlet?

1222