What is the difference between virtual functions and pure virtual functions?



What is the difference between virtual functions and pure virtual functions?..

Answer / hrpynux@gmail.com

A virtual function is a member function of base class which can be redefined by derived class. A pure virtual function is a member function of base class whose only declaration is provided in base class and should be defined in derived class otherwise derived class also becomes abstract.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

What is a constructor initializer list?

0 Answers   Amazon,


Is deconstructor overloading possible? If yes then explain and if no Then why?

1 Answers  


dynamic scoping is

0 Answers   Siemens,


Define an Abstract class in C++?

0 Answers  


Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.

0 Answers   Alter,






What are the advantages/disadvantages of using #define?

0 Answers   Amazon,


Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69

2 Answers  


Tell us the size of a float variable.

0 Answers   Accenture,


What are issues if we mix new and free in C++?

0 Answers  


Find the Factorial of a number using a program.

0 Answers   Accenture,


What is Boyce Codd Normal form?

0 Answers   IBS,


Write a C++ Program to find Addition of Two Numbers.

1 Answers  


Categories