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 fflush c++?

0 Answers  


a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?

2 Answers   CTS,


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

0 Answers  


What is array in c++ example?

0 Answers  


advantages and disadvantages of using Borland C++ / version 5.

1 Answers  






Why c++ is the best language?

0 Answers  


What is & in c++ function?

0 Answers  


What does I ++ mean in c++?

0 Answers  


Will a catch statement catch a derived exception if it is looking for the base class?

0 Answers  


What are the popular tools used to detect memory leaks in c++

4 Answers   TATA,


what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.

9 Answers  


what is COPY CONSTRUCTOR and what is it used for?

0 Answers  


Categories