MT 262 - Block 2 - Unit 3 - Implementing Classes
fellstrider.com - the logo!
Home| OU Study Rooms | MT262 Index | Block 2 - Structures
 
Implementing classes

Class declarations in C++

Class declarations are similar to the struct declarations. The keyword class identifies this as a class declaration. Declaring something to be private means that is only accessible to the code that implements the class. Declaring something to be public means that is accessible to other code.


class WarehouseType
{ 
  private:
  BinType Bins[6][10];
  
  public:
  void Init(void);
  AnsiString Store(int InCode, int InQuantity);
  AnsiString Supply(int OutCode, int OutQuantity);
  void Final(void);
};
Home| OU Study Rooms | MT262 Index | Block 2 - Structures
Move on to Unit 4 - Input, Output and Files

Valid CSS! Valid XHTML 1.0!

Comments, suggestions, ideas to
Stuart Banner