can you give real time example for polymarphism
Answers were Sorted based on User's Feedback
Answer / lavanya
I am daughter for my parents,sister for my sibling, and also
a employee for my employer...am one but acting different in
different scenario....
Is This Answer Correct ? | 15 Yes | 0 No |
Answer / venki
Appearing different forms of water
once it acts as ice
and other vapour
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / rama
Shape
draw()
it may consists of:
1.Circle object
Draw(circle)
2.Box object
Draw(box)
3.Triangle object
Draw(triangle)
Is This Answer Correct ? | 0 Yes | 0 No |
What is function overloading?,describe it with the example.
1. Strong name 2. how to prevent a class from being inherited 3. delegates 4. default modifier for interface 5. default modifier for class 6. base class for exception 7. diff bet trigger and view in sql 8. how to exchange values from one page to another page 9. can multiple catch block ll be executed at same time 10. can u store different data types in an array & array list 11. when we ll use trigger 12. try,catch,finally usage
What is property in oops?
What is a superclass in oop?
is java purely oop Language?
49 Answers HCL, Infosys, TCS,
why c++ is called OOPS? waht is inherutance? what is compiler?
When not to use object oriented programming?
Why multiple inheritance is not possible?
Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?
Difference between vector and array
What is the diamond problem in inheritance?
What is encapsulation in simple terms?