Answer Posted / r.ramakrishna
Defining the variables in the class of a method after the
method will executed.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How to call a non virtual function in the derived class by using base class pointer
What are the components of marker interface?
What is polymorphism explain?
What is polymorphism and example?
What do you mean by Encapsulation?
What is the diamond problem in inheritance?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What are different oops concepts?
What is abstraction example?
What makes a language oop?
Can a destructor be called directly?
Why do while loop is used?
write a program that takes input in digits and display the result in words from 1 to 1000
What are constructors 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.