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
Why jsp is better than servlet?
What are some disadvantages of storing session state in cookies?
What are different ways for servlet authentication?
What is the default http method in the servlet?
What is the advantage of Servlets when compared with other server side technologies?
How printwriter is different from servletoutputstream?
What are the differences between forward() method and sendredirect() methods?
How many servlet objects are created?
What is setattribute in servlet?
How will two or three servlets interact or communicate with each other?
How do you deal property files in servlet?
Can you refresh servlet in client and server-side automatically?
why we should override only no-agrs init() method.
What are the different methods of session management in servlets?
What are all the advantages of servlet over cgi?