What do you mean by pure virtual functions in C++? Give an example?



What do you mean by pure virtual functions in C++? Give an example?..

Answer / hrpynux@gmail.com

A pure virtual function is a virtual function in C++ for which we need not to write any function definition and only we have to declare it. It is declared by assigning 0 in the declaration. An abstract class is a class in C++ which have at least one pure virtual function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is a map in c++?

0 Answers  


What are the various operations performed on stack?

0 Answers  


What do you mean by abstraction in C++?

1 Answers  


write the programme that convert a interger to biniry number

1 Answers   Amazon,


Can non graphic characters be used and processed in C++?

0 Answers   HCL,






What is friend class in c++ with example?

0 Answers  


Is java easier than c++?

0 Answers  


what is the use of templates?

3 Answers  


Do we have to use initialization list in spite of the assignment in constructors?

0 Answers  


Explain shallow copy?

0 Answers  


What's the order in which the objects in an array are destructed?

0 Answers  


Define friend function.

0 Answers  


Categories