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

Answer Posted / nazneen

Polymorphism applies to Overriding
Inheritance applies to Reusability of code defined earlier in one Class and later on used by Other Classes..

Is This Answer Correct ?    14 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a generic servlet and http servlet?

601


How do you run a servlet?

629


What is the difference between jsp and servlet life cycle?

787


Whether thread can be used in servlets?

826


What is servlet in simple terms?

657






Why filter is used in servlet?

611


What is the use of servlet context?

618


What is servlet container?

753


Can filter be used as request or response?

623


Differentiate between the get and post method

666


What is the use of httpservletrequestwrapper?

682


What do you mean by cgi and what are its drawbacks?

617


How native code can be used in a servlet?

3599


Which method of the httpservletrequest object is used?

663


What is the difference in between the httpservlet and generic servlet?

695