If you have a PH account, you can customize your PH profile.
*/

Other Views

corner
*/

CPLUSPLUS FAQ - What Are Pure Virtual Functions

What are Pure Virtual Functions?

Pure Virtual functions are Virtual functions with no implementation code in them. They are declared by setting the Virtual function equals 0. Pure Virtual functions serve the purpose of declaring as class as Abstract- a class that can not have an object of itself.

Code Example:

class Vehicle
{
public:
	Vehicle(){}
	Virtual void GetRegistration() = 0;
};


C++ FAQ Home
corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings