Define pure virtual function? why & when it is used?, C/C++ Programming

Define Pure Virtual Function? Why & when it is used?

Posted Date: 3/16/2013 2:42:44 AM | Location : United States

The abstract class whose pure virtual method ought to be implemented through all the classes that derives on these. Or else it would result in a compilation error. This construct should be utilized while one wants to make sure that all the derived classes implement the method described  as pure virtual in base class.


Posted by | Posted Date: 3/16/2013 2:43:06 AM

Related Discussions:- Define pure virtual function? why & when it is used?, Assignment Help, Ask Question on Define pure virtual function? why & when it is used?, Get Answer, Expert's Help, Define pure virtual function? why & when it is used? Discussions

Write discussion on Define pure virtual function? why & when it is used?
Your posts are moderated
Related Questions
Aim: Write a program of multipication using inline function class Multiply {           int x,y;           public:           void getdata();           inline calc

For this program you will add and test 2 new member functions to the IntSLList class posted on the website. The two member functions are: insertByPosn(int el, int pos) Assuming t

It is a feature in C++ to reduce name collisions in the global name space. This namespace keyword assigns a separate name to a library that allows other libraries to use the simila

Project Description: We refurbish older computer and send them back into the market with windows 7 operating system. We are presently using windows deployment services through P

#quesdifferentiate betweenrelocatable and self relocating program with exampletion..

Ravi is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''''{'''' and end with ''''}

b) The static keyword let a variable to maintain its value among distinct function calls. If the value of a static variable alters while the variable has been accessed, variable

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Homework – Chapter 5 – Bowling Scores 33. Write a complete C++ program to do the following: The main program reads in and prints three bowling scores, score1, score2, and score

I have an exercise with 2 problems. One that is partially completed except with read problems with memory overwrite, and the other problem. I have enclosed the instructions documen