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: To implement a program to add two polar coordinates using operator overloading. Code:                       #define PI 3.14 class polar {             double

HOW TO USE POINTER

program that counts the number of occurrences of the string in the n-th padovan string p(n)

Write a C program to input your full forename and full surname. e.g James McCarren and display in one string your complete initial and surname i.e J McCarren . Your initial should

Define Advantages of Multi File Program? The main merits of spreading a program across several files are: • Teams of programmers able to work on programs. Every programmer w

Static Data Members: A data member inside the class can construct as static data member.   There are few guidelines to be followed when declaring static data member.

write a C++ program that performs the following tasks 1. prompts the user to enter two numbers 2. displays the divisors of each number and store the divisors of number 1 in A and t

What is the difference between JavaScript and PHP? The difference lies with the execution of languages. PHP is server side scripting language, which means that it cannot intera

I have a very confusing assignment and I''m struggling to find the right place to begin or how to break the problem down.