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 |
Why is c++ difficult?
When we use Abstract Class and when we use Interface?where we will implement in real time?
How do you test your code?
Explain the use of virtual destructor?
How to implement is-a and has-a class relationships?
Where can I run c++ program?
What are friend classes? What are advantages of using friend classes?
write the prime no program in c++?
What are put and get pointers?
What is c++ virtual inheritance?
How to demonstrate the use of a variable?
advantages and disadvantages of using Borland C++ / version 5.