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
Implementation of the Stack class in C++: How to implement stack class in c++. int Stack::push(int elem) {    if (top    {       list[top++] = elem;       r

A: No. If they're utilized properly, they increase encapsulation. You frequently require splitting a class in half while the two halves will have distinct numbers of instances o

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Default argument: When the argument is missing then the function will read the default value of the missing argument.  To make use of default argument functionality the argu

source code for padovan string

plaese tell the full program for the above given topic with the input and output

Optimize and Profile a C++ library for speed Project Description:  Optimize and Profile an existing C++ library for speed. This library uses OpenMP and OpenCV and C++ stan

Part 1 Assignment:  develop a calculator in MASM. Text chapters covered:  1 through 4, 5.4, 5.5, 6.3, 7.4 You will develop a "calculator" algorithm in MASM using reverse-

1.1 A Few Notes: 1. Please test your program with various inputs prior to submission. 2. All group members must understand the entire project for interactive grading. Equal