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 is the purpose of template?
What are namespaces in c++?
If a header file is included twice by mistake in the program, will it give any error?
If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number?
What is private, public and protected inheritance?
Is c++ proprietary?
Define a nested class.
Can you pass a vector to a function?
Is java a c++?
How the delete operator differs from the delete[]operator?
What are the various arithmetic operators in c++?
how many rounds and wt type of questios ask in the written test for first round 2. tech. round 3. and futher rounds