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

Servlet is pure java object or not?

709


What is the GenericServlet class?

591


What is httpservlet and how it is different from genericservlet?

594


Explain the difference between servletconfig and servletcontext in servlet?

559


What is a servlet-to-servlet communcation?

637






What is the difference between Servlets and Applets?

535


What are the drawbacks of cgi?

558


What are the types of an http request?

573


What is lazy loading and what is Generic Servlet Class?

598


Which http method is said to be non-idempotent and idempotent?

599


What is meant by a web application

531


What is servlet interface?

692


What is the difference between jsp and servlet life cycle?

677


Difference between GET and POST?

700


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2520