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
How many types of comments are there in c++?
How should a contructor handle a failure?
What is the use of setprecision in c++?
Where can I run c++ program?
Explain the isa and hasa class relationships. How would you implement each?
What is type of 'this' pointer? Explain when it is get created?
What is the keyword auto for?
What are function prototypes?
How do you decide which integer type to use?
Differentiate between the message and method in c++?
What is a unnitialised pointer?
What is the use of endl in c++ give an example?
Do you know the problem with overriding functions?
If a function doesn’t return a value, how do you declare the function?
What does h mean in maths?