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

just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6483


What are the three main types of variables?

600


What is debug class?what is trace class? What differences are between them? With examples.

1604


How long to learn object oriented programming?

562


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6144






What are the 3 principles of oop?

616


What language is oop?

591


What are the three parts of a simple empty class?

1456


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

693


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1636


How do you achieve polymorphism?

610


What is overloading and its types?

612


Can we override main method?

603


c++ program to swap the objects of two different classes

1761


Why do we need polymorphism in c#?

684