Answer Posted / brunda r
Virtual functions are the functions declared as normal
function call but preceeded by keyword 'virtual'.Its value is
equated to zero and its definition is incomplete or
blank.Virtual functions is dynamic polymorphism.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is destructor in oop?
What are the three main types of variables?
What is polymorphism in oops with example?
program for insertion ,deletion,sorting in double link list
What is the purpose of polymorphism?
What is destructor give example?
What is encapsulation and abstraction? How are they implemented in C++?
What is a null tree?
What is meant by multiple inheritance?
What are the 4 pillars of oop?
Whats oop mean?
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 abstraction example?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
Can an interface inherit a class?