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 byval and byref? What are differences between them?

1689


What is polymorphism in oop example?

515


Can you name some types of inheritance?

641


Can you inherit a private class?

631


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1793






What is oops?what is its use in software engineering?

557


What does enum stand for?

614


What is encapsulation example?

549


What is oops and its features?

587


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.

630


Is react oop?

611


What is overriding vs overloading?

584


What is the types of inheritance?

604


Write a program to reverse a string using recursive function?

1792


What is the fundamental idea of oop?

638