Answer Posted / p.madhupriya
object is real world entity.
class is a collection of objects and member function .
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
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 class and object?
What is difference between polymorphism and inheritance?
What is difference between abstraction and encapsulation?
What is abstract class in oops?
Can an interface inherit a class?
What do you mean by variable?
What language is oop?
what is difference between class template and template class?
What is difference between multiple inheritance and multilevel inheritance?
Is this job good for future? can do this job post grduate student?
How long to learn object oriented programming?
What is a class oop?
What is multilevel inheritance explain with example?
What is constructor in oop?