Answer Posted / mosin
only one base class with derived to only one derived class
| Is This Answer Correct ? | 33 Yes | 11 No |
Post New Answer View All Answers
Which method cannot be overridden?
What is oops with example?
Why is encapsulation used?
how to get the oracle certification? send me the answer
write a program that takes input in digits and display the result in words from 1 to 1000
what are the different types of qualifier in java?
What is polymorphism oop?
What is stream in oop?
How is class defined?
What are benefits of oop?
which feature are not hold visual basic of oop?
How oops is better than procedural?
What is a function in 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 is polymorphism and types?