What are the different forms of polymorphism??
Answer Posted / suganyamuralidharan
1.Compile time polymorphism
Exhibited by: Function overloading
Operator overloading
2.Run time polymorphism
Exhibited by: Function overriding
| Is This Answer Correct ? | 22 Yes | 3 No |
Post New Answer View All Answers
What does no cap mean?
What is pure oop?
Why do we use class in oops?
What is the benefit of oop?
Is abstract thinking intelligence?
What is new keyword in oops?
What is the purpose of enum?
What is advantage of inheritance?
How to hide the base class functionality in Inheritance?
What is debug class?what is trace class? What differences are between them? With examples.
What does I oop mean?
Why do we use polymorphism?
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 are the features of oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.