Answer Posted / swetcha
Method overloading occurs when a class contains two methods
with the same name, but different signatures
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Can you inherit a private class?
Can an interface inherit a class?
What is abstraction oop?
How many human genes are polymorphic?
Why do we use oops?
can inline function declare in private part of class?
What is an interface in oop?
What is inheritance in simple words?
What is a class oop?
Can we override main method?
What is destructor example?
What is static 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.
What is the difference between inheritance and polymorphism?