Answer Posted / sree
virtual function comes into picture while inheriting the
base class functions to the derived class functions.
ifthe virtual isnot used then the pointer of derived class
points to the baseclass function
Is This Answer Correct ? | 28 Yes | 1 No |
Post New Answer View All Answers
What are the features of 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 are the types of abstraction?
Get me an image implementation program.
Can we create object of interface?
What are the 3 principles of oop?
What is the point of oop?
Why it is called runtime polymorphism?
What are the important components of cohesion?
What are the benefits of oop?
What is polymorphism and its types?
What is pure oop?
What are properties in oop?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is the important feature of inheritance?