What is polymorphism what is it for and how is it used?
No Answer is Posted For this Question
Be the First to Post Answer
4. What do you mean by a prototype? Define analysis prototype
What are virtual classes?
why c++ is a highlevel language
3 Answers Satyam, Tech Mahindra,
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
what is new operator in c++
What is the Advantage of Interface over the Inheritance in OOPS?
Describe what an Interface is and how it?s different from a Class.
What is abstraction and encapsulation?
why reinterpret cast is considered dangerous?
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
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 a scope operator and tell me its functionality?