Answer Posted / anil
polymorphism means implementing different functionality's
with the same name and different type of arguments and
different number of parameters.We can achieve polymorphism
using function overloading and function overriding.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the point of polymorphism?
What is overloading in oops?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is multilevel inheritance explain with example?
#include
What is destructor oops?
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 is the main feature of oop?
What is overriding in oop?
What are the advantages of polymorphism?
Can private class be inherited?
What is new keyword in oops?
Why do pointers exist?
How to use CMutex, CSemaphore in VC++ MFC
What is difference between abstraction and encapsulation?