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
Can we use threads in Servlets?
How to upload a file to the server using servlet?
If a servlet is not properly initialized, what exception may be thrown?
What is servlet in simple terms?
How do you configure a centralized error handler in servlets?
What is a servlet-to-servlet communcation?
What is the difference between Difference between doGet() and doPost()?
Explain load on start-up and its importance?
How many objects of a servlet is created?
Which interface should be implemented by all servlets?
What are the supporting protocol by HttpServlet ?
What are the steps involved in placing a servlet within a package?
What are the mechanisms used by a servlet container for maintaining session information?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What do you mean by filter in servlet?