What is Pure Virtual Function? Why and when it is used ?
Answer Posted / harry
pure virtual function declared in the base class.
pure virtual function having intializer=0;
pure virtual function also know as do nothing function &
dummy function.
class contain atleast one pure virtual function.
object cannote be create of that class in which pure
virtual function are declared and that class are know as
abstract class.
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
What are the types of array in c++?
What is abstract keyword in c++?
What is a try block?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What is stl containers in c++?
Write about the access privileges in c++ and also mention about its default access level?
What are the various compound assignment operators in c++?
Explain the extern storage classes in c++.
What is const pointer and const reference?
Is c++ double?
What is the use of "new" operator?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
what is Loop function? What are different types of Loops?
What is the difference between mutex and binary semaphore?