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 kind of problems can be solved by a namespace?
What is abstraction in c++?
Tell me an example where stacks are useful?
Will c++ be replaced?
What are the benefits of operator overloading?
How do you test your code?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What are the various oops concepts in c++?
Which programming language should I learn first?
How do we balance an AVL Tree in C++?
What are the extraction and insertion operators in c++? Explain with examples.
What is std namespace in c++?