Answer Posted / irfan
there are two type polymorphism use in c++ first is static
and second is dynamic static polymorphism is function
overloading oprater overloading & dynamic is virtual function.
Is This Answer Correct ? | 27 Yes | 10 No |
Post New Answer View All Answers
What is object in oop?
What is difference between polymorphism and inheritance?
What is polymorphism and its types?
What is polymorphism what are the different types of polymorphism?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Who invented oop?
Can an interface inherit a class?
What does sksksk mean in text slang?
Templates mean
What is encapsulation c#?
What is an advantage of polymorphism?
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.
When not to use object oriented programming?
What is property in oops?
Why do we use class?