can you give real time example for polymarphism
Answer Posted / 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 |
Post New Answer View All Answers
What is pointer in oop?
What is an advantage of polymorphism?
i got a backdoor offer in process global,Bangalore..Can i work with it?
How oops is better than procedural?
What is class in oop with example?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
can inline function declare in private part of class?
What is purpose of inheritance?
What is abstraction and encapsulation?
Is data hiding and abstraction same?
What is the real time example of inheritance?
Who invented oop?
What is for loop and its syntax?
Why do we use class in oops?
Can destructor be overloaded?