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 does java thread pool work?
Can a jsp be called using a servlet?
What are the supporting protocol by HttpServlet ?
What if we pass negative value in load-on-startup?
What are all the ways for session tracking?
Difference between doget and dopost?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What are the steps that are involved in using the httpservlet class?
How do I use cookies to store session state on the client?
What are sessions in servlets?
What is the GenericServlet class?
What is the purpose of inter-servlet communication?
How do you run a servlet?
What is the use of servlet wrapper classes?
What is the difference between a generic servlet and http servlet?