How to create a pure virtual function?
You declare a pure virtual function by using a pure specifier ( = 0 ) in the declaration of a virtual member function in the class declaration. Class A is an abstract class. The compiler would not allow the function declarations A g() or void h(A) , declaration of object a , nor the static cast of b to type A .
| Is This Answer Correct ? | 0 Yes | 0 No |
What are exceptions c++?
What is the use of class in c++?
What is the syntax for a for loop?
How to demonstrate the use of a variable?
i want the NIC programmer-B model papaer pattren, iwant the all model papers?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
Explain operator overloading.
Which operations are permitted on pointers?
What is flush () in c++?
What are pointer-to-members in C++? Give their syntax.
What is the use of cmath in c++?
Is c++ still being used?