what is virtual function?

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


Please Help Members By Posting Answers For Below Questions

What is destructor in oop?

788


What are the three main types of variables?

827


What is polymorphism in oops with example?

758


program for insertion ,deletion,sorting in double link list

2443


What is the purpose of polymorphism?

872


What is destructor give example?

810


What is encapsulation and abstraction? How are they implemented in C++?

844


What is a null tree?

855


What is meant by multiple inheritance?

932


What are the 4 pillars of oop?

884


Whats oop mean?

787


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.

921


What is abstraction example?

826


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’.

1981


Can an interface inherit a class?

777