Thinking Cap Implementation
class ThinkingCap
{
public:
void slots(char new_green[ ], char new_red[ ]);
void push_green( ) const;
void push_red( ) const;
private:
char green_string[50];
char red_string[50];
};
The keyword const appears after two prototypes:
This means that these
functions will not change
the data stored in a
ThinkingCap.
Previous slide
Next slide
Back to first slide
View graphic version