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);
};
Move on to Unit 4 - Input, Output and Files
Comments, suggestions, ideas to
Stuart Banner
