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
Why do we need servlet filter?
What is servlet interface?
Which protocol will be used by browser and servlet to communicate
List some life cycle methods of a servlet.
What is the major difference between servlet and applet?
What are advantages of servlets over cgi?
What is generic servlet class?
What is the use of java servlet api?
What are the new features added to servlet 2.5?
Explain get and post.
Can you send an authentication error from a servlet?
How can we create deadlock situation in servlet?
What are some disadvantages of storing session state in cookies?
What's the servlet interface?
What is setattribute in servlet?