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 |
Why a "operator=(...)" when there is a copy ctor?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What are the advantages of polymorphism?
What is the real time example of inheritance?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
diff between Virtual mathod and abstract method?
What is difference between polymorphism and inheritance?
What is the point of polymorphism?
sir plz send me a set of questions that been frequently held in written examination during campus selection.
Can abstract class have normal methods?
What is the main difference between C++ and Java