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
Which operator cannot overload?
Do you know what are pure virtual functions?
Is c# written in c++?
Which programming language is best?
What does catch(…) mean?
Difference between strdup and strcpy?
What is the use of register keyword with the variables?
Define whitespace in C++.
Which c++ operator cannot overload?
What is scope in c++ with example?
Carry out conversion of one object of user-defined type to another?
What do the header files usually contains?
Are iterators pointers?
Explain storage qualifiers in c++.
What is the use of c++ programming language in real life?