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 Boyce Codd Normal form?

0 Answers   IBS,


What are pass by value and pass by reference?what is the disadvantage of pass by value?

0 Answers   Alter,


What does it mean to declare a member function as virtual in C++?

0 Answers   Amazon,


Define an Abstract class in C++?

0 Answers  


What does it mean to declare a member function as static in C++?

0 Answers   Amazon,






What is Advantage and Use of THIS pointer in C++ – Scenarios?

0 Answers  


Write a C++ Program to Check Whether a character is Vowel or Consonant.

2 Answers  


How will you print a list of all unique words from a string which may contain repeated words?

0 Answers   Adobe,


What are Agilent PRECOMPILERS?

0 Answers   Agilent,


Explain about Searching and sorting algorithms with complexities

0 Answers   Accenture,


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

1 Answers  


What is the difference between malloc, calloc and realloc?

0 Answers   Alter,


Categories