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 |
can anybody please tell me how to write a program in c++,without using semicolon(;)
How do you link a C++ program to C functions?
How to avoid a class from instantiation?
What is malloc in c++?
What is the difference between Class and Structure?
40 Answers HP, IBM, Samsung, TCS,
How the delete operator differs from the delete[]operator?
How the V-Table mechanism works?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
What are static variables?
When can I use a forward declaration?
what is importance of data sturture in a programming language?
22 Answers L&T, TCS, Wipro,
What is a tree in c++?