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
polishing the jewel game with c coding

##question.A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string co   program in jav

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Hi, Can i get a quote for my Programming assignment

Explain the  bit fields portable or not? - No, Bit fields aren't portable. - As Bit fields can't span machine words and number of bits in a machine word is different on diff

Debug the following program to calculate N! #include using namespace std; main() {             int N, factorial=1;             cout             cin >> N;


A: It is implementation dependent. Verify with your compiler's documentation. For instance, assume you wish to do binary I/O using std::cin & std::cout. Unluckily there is no st

Explain one-definition rule (ODR). According to one-definition rule, C++ constructs should be identically defined in each compilation unit they are used in. As per ODR, two

I need Profile and optimize a C++ library for speed Project Description: Optimize and profile an existing C++ library for speed. This library uses OpenMP and OpenCV and C+