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 |
How the keyword struct is different from the keyword class in c++?
Have you used MSVC? What do you think of it?
Can class objects be passed as function arguments?
Define vptr.
What is class invariant?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
State the difference between delete and delete[].
Write a program to show polymorphism in C++?
what is C++ objects?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
what you know about c++?
what is COPY CONSTRUCTOR and what is it used for?