Answer Posted / keshav.gadde
Template is a mechanism that allows one function or class to
deal with diffrent data types.
Using templates we can design a template class that operates on
diffrent data types.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what type of questions
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.
#include
What do you mean by variable?
what is graphics
Why do we use class in oops?
Why do pointers exist?
State what is encapsulation and friend function?
which feature are not hold visual basic of oop?
Which is not an object oriented programming language?
What is an advantage of polymorphism?
Why do we need oop?
What are the three parts of a simple empty class?
what is difference between class template and template class?
What is object and class in oops?