What do you mean by pure virtual functions in C++? Give an example?
Answer Posted / 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 View All Answers
What is the purpose of templates in c++?
How is new() different from malloc()?
Who made c++?
When do you call copy constructors?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
Explain about vectors in c ++?
What is the difference between ++ count and count ++?
What are the important differences between c++ and java?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
Explain abstraction.
What is token c++?
Can we use pointers in c++?
What is problem with overriding functions?
What is scope resolution operator in c++ with example?
What is the benefit of encapsulation?