Answer Posted / atul gaikwad
This polymorphism is also called as late binding.
Dynamic polymorphism can be achieved by using function overriding.
eg.for addition of numbers if we write function as
void add Numbers(int,int);
And this function is written in base class as well as derived class as it is then satisfies the function over-riding concept.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is html an oop?
What is destructor oops?
What is the real time example of inheritance?
write knight tour problem which is present in datastructure
What is the importance of oop?
What is abstraction in oop with example?
Is abstract thinking intelligence?
which feature are not hold visual basic of oop?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What are the benefits of oop?
What is difference between oop and pop?
Prepare me a program for the animation of train
What is polymorphism what is it for and how is it used?
when to use 'mutable' keyword and when to use 'const cast' in c++
How do you answer polymorphism?