RAD Studio
ContentsIndex
PreviousUpNext
class

Category 

C++-Specific Keywords, Type specifiers 

Syntax  

<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

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!