Answer Posted / hrpynux@gmail.com
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 |
Post New Answer View All Answers
What is the use of namespace std in C++?
What do you mean by inheritance in c++?
What is a base class?
What is the advantage of an external iterator.
Will the following program execute?
What is the use of object in c++?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is the full form of india?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
By using c++ with an example describe linked list?
What are keywords in c++?
What are arithmetic operators?
What is an associative container in c++?
daily Routine of father
What is the purpose of the "delete" operator?