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 2 ways of exporting a function from a dll?
What is the best way to declare and define global variables?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
Explain Memory Allocation in C/C++ ?
What is static in c++?
Which one is better- macro or function?
There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would repeat , so the is one no. missing because 99 cells and 1-100 nos. so we had to implement a function to find that missing no.
Do we have private destructors?
What is the type of 'this' pointer? When does it get created?
Is swift faster than c++?
What is a virtual destructor?
What is difference between array and vector in c++?