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

Can you send an authentication error from a servlet?

511


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

891


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

540


How servlet is created?

535


How can I send user authentication information while making URL Connection?

534






What’s the difference between sendredirect and forward methods

558


What are the uses of servlets?

611


What are the key methods that are involved in processing of http servlets?

618


What exception should be thrown when servlet is not properly initialized?

549


Explain the difference between a web server and a web container?

502


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

561


Explain web container.

562


Are Servlets Thread Safe? How to achieve thread safety in servlets?

550


What is the difference between sendredirect() and forward() in a servlet?

519


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

2522