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
How do you run a servlet?
What is servlet and list its types?
What is webservlet?
What is the use of java servlet api?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
Where do you define dispatcherservlet?
What is called Scriptlet?
How do you deal property files in servlet?
What is the use of send redirect () method?
What is Servlets and explain the advantages of Servlet life cycle?
Explain the differences between jsp and servlet.
Write a hello world program using servlets.
Which are the different ways you can communicate between servlets?
How do I use cookies to store session state on the client?
Why the concept of single thread model interface is used?