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


Please Help Members By Posting Answers For Below Questions

What are the uses of servlet and what is servlet chaining?

553


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

566


What do you mean by chaining in servlet?

564


Explain how to improve Servlet Performance?

592


What is the purpose of requestdispatcher interface?

605






Given the request path below, which are context path, servlet path and path info?

536


What are its drawbacks of cgi?

559


Is servlet a controller?

567


What is the difference between using getSession(true) and getSession(false) methods?

562


What is difference between cookies and httpsession?

542


What methodology can be followed to store more number of objects in a remote server?

1811


Why the concept of single thread model interface is used?

543


What do you mean by session tracking and also explain its techniques?

490


What is servlet in simple terms?

555


How do you run a servlet?

537