RAD Studio |  |

class
See Also
Collapse All

Category

C++-Specific Keywords, Type specifiers

Syntax

Copy Code

    <classkey> <classname> <baselist> { <member list> }

- <classkey> is either a class, struct, or union.
- <classname> can be any name unique within its scope.
- <baselist> lists the base class(es) that this class derives from. <baselist> is optional
- <member list> declares the class's data members and member functions.

Description

Use the class keyword to define a C++ class.

Within a class:

- the data are called data members
- the functions are called member functions

See Also

Private

Protected

public

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!