can u give some realtime example in ploymorphism? and
inheritance?
Answer Posted / sai vamsi krishna
An Inheritance is to access the properties from super class to sub class.
example father to son sometmes the father has some diseases like sugar,BP those are attacking to son also.
poymorphism means many forms
example one person acts as many roles in his life a person works at company he is a employee at the same time he is a father of his son.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
List out the difference between ServletConfig and ServletContext?
What is the difference between jsp and servlet life cycle?
Explain the lifecycle of a servlet?
Differentiate between the print writer and servlet output stream?
Explain how to improve Servlet Performance?
What are the benefits of using servlet over cgi?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
Can we fetch the attributes related to a servlet on a different servlet?
Which method of the httpservletrequest object is used?
How to get the current httpsession object?
Difference between doget and dopost?
What is context in servlet?
What do you mean by httpservlet and how it is different from the genericservlet?
Which event is fired at the time of session creation and destroy?