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

When servlet object is created?

690


What are the different methods of session management in servlets?

614


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

635


Explain the steps involved in placing a servlet within a package?

647


Is servlet thread safe?

619






How do cookies work in servlets?

680


What are the difference between session and cookies in servlet? Explain

645


What is meant by Servlet? What are the parameters of service method?

687


What is a servlet-to-servlet communcation?

736


What is the use of servlet context?

618


What is ServletConfig object?

688


What is the dispatcher servlet?

606


What are the different methods involved in the process of session management in servlets?

760


Describe servlet?

656


What are the steps involved in placing a servlet within a package?

669