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 |
Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.
0 Answers An-Najah National University,
What is ctime c++?
What is a .h file c++?
What is the disadvantage of using a macro?
What is lazy initialization in c++?
What are the debugging methods you use when came across a problem?
Is c++ a pure oop language?
What are the various oops concepts in c++?
What are different types of polymorphism supported by C++
Disadvantages of c++
Is there a sort function in c++?
What is meant by entry controlled loop?
0 Answers Agilent, ZS Associates,