Answer Posted / r.ramakrishna
We want use the new operator in overloading by defining the
new()operator with the fallowing operation in the class.
| Is This Answer Correct ? | 3 Yes | 2 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.
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is a superclass in oop?
What are the components of marker interface?
write a program that takes input in digits and display the result in words from 1 to 1000
How do you achieve runtime polymorphism?
What is encapsulation in oop?
What is class encapsulation?
what are the different types of qualifier in java?
what are the ways in which a constructors can be called?
What is overloading in oop?
What is ambiguity in inheritance?
What is inheritance and how many types of inheritance?
What is the important feature of inheritance?
How is polymorphism achieved?