Answer Posted / zeeshan
Polymorphism can be achieved by two ways:
1.Overloading 2.Overriding
1.Overloading: Overloading means methods have same name but
different arguments it can be achieved at Compile Time.
1.Overriding: Overloading means when we make method virtual
in base class and we also want that it also used in child
then we use override keyword for that method and and it can
be achieved at Run Time.
| Is This Answer Correct ? | 21 Yes | 1 No |
Post New Answer View All Answers
What is polymorphism give a real life example?
Why is polymorphism used?
What is cohesion in oop?
What is inheritance write a program to show use of inheritance?
is there any choice in opting subjects like 4 out of 7
What does no cap mean?
What is polymorphism programming?
How is class defined?
What are the benefits of interface?
Which method cannot be overridden?
What is polymorphism used for?
What do you mean by overloading?
Why do we need oop?
How to use CMutex, CSemaphore in VC++ MFC
Can bst contain duplicates?