Answer Posted / lokesh singh
when ever we think about generic function, first of all
think why we needed.
if we want to use no of diffrent-diffrent variables in a
programme then we need no of function for that purpose.
generic function is used for preventing function
overloading. due to feature of taking any type of variable.
it have such type of quality.
Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
Whats oop mean?
Where You Can Use Interface in your Project
What is difference between abstraction and encapsulation?
what is graphics
What is difference between oop and pop?
What is inheritance in oop?
What are the important components of cohesion?
Why is abstraction needed?
Which is better struts or spring?
Explain the advantages of inheritance.
What is static in oop?
What is the importance of oop?
What is the real time example of inheritance?
What is meant by multiple inheritance?
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.