Written some cool source code? Upload it to Programmer's Heaven.
*/
*/

CPLUSPLUS FAQ - What is a Class

What is a Class?

Objects of the same type fall into a Class. Consider for example a Car. A Car can be represented as a Class with a state variable of price and methods like Stop, Move etc.

Now Mercedes can be an object of type or class Car with a price of $XX, whereas Buick can be an Object of type or Class Car with price of $YY. Hence Objects of a Class are similar except for their state.

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