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 |
Does improper inheritance have a potential to wreck a project?
Explain bubble sorting.
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
List the issue that the auto_ptr object handles?
Write a program to concatenate two strings.
What is your strongest programming language (Java, ASP, C, C++, VB, HTML,C#, etc.)?
24 Answers Infosys, Microsoft, TCS,
What is the stack?
How static variables and local variablesare similar and dissimilar?
What are c++ variables?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
What are the advantages of using const reference arguments in a function?
How to get the current position of the file pointer?