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
What are the functions of an intercepting filter?
Difference between GET and POST?
How do you design microservices?
What is servlet and its advantages?
When jsessionid is created?
Which is the methods of generated servlet?
What is api in servlet?
Who is responsible for writing a constructor?
What do you mean by servlet?
Define declaration.
Explain the difference between a web server and a web container?
How to commuincate between an applet and a servlet?
What is httpservlet class?
Can we use the constructor, instead of init(), to initialize servlet?
The code in a finally clause will never fail to execute, right?