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

Answer Posted / srinu

polymorphism: Polymorphism one form existing many forms is
called polymorphism.its used for over ridding.

EX:Man
Because A Man go to office he is an Employee.
A Man go to movie he is an auditor.
A man walk with his lover she's boy friend



inheritance is hierarchy of class,that is one class derived
from another class

EX:

grant father
--father
--son

Is This Answer Correct ?    19 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the term localization refer to?

580


How httpservlet is different from the genericservlet?

562


Can you call a jsp from the servlet?

546


Explain load on start-up and its importance?

594


Explain the different ways for servlet authentication?

532






What is a java servlet?

552


How printwriter is different from servletoutputstream?

579


What is a web application and what is it’s directory structure?

582


How does Cookies work in Servlets?

649


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

775


Tell us something about servletconfig interface.

580


What do you mean by web applications?

625


How do you design microservices?

623


What is servletconfig?

545


How can a servlet be used to generate plain text instead of html?

543