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 / babu

Babu torati

METHOD OVERLOADING:Means suppose one man behaving different ways
suppose if is meet his wife he feels different if he meet his girl friend he feels differently means Based on person he meet his behavior will changes.


METHOD OVERRIDING:Means if father is gives some Properties to his son. ex:Bike but father says if you want to change this bike your wish otherwise continue with this bike(i.e no restriction) means gives permission throw the virtual keyword if you want change(override).

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why jsp is better than servlet?

1035


What are some disadvantages of storing session state in cookies?

1023


What are different ways for servlet authentication?

1109


What is the default http method in the servlet?

1303


What is the advantage of Servlets when compared with other server side technologies?

2347


How printwriter is different from servletoutputstream?

1014


What are the differences between forward() method and sendredirect() methods?

1030


How many servlet objects are created?

1069


What is setattribute in servlet?

1144


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

1450


How do you deal property files in servlet?

1075


Can you refresh servlet in client and server-side automatically?

1081


why we should override only no-agrs init() method.

1133


What are the different methods of session management in servlets?

1030


What are all the advantages of servlet over cgi?

1090