Thinking Cap Implementation
void ThinkingCap::slots(char new_green[ ], char new_red[ ])
assert(strlen(new_green) < 50);
assert(strlen(new_red) < 50);
strcpy(green_string, new_green);
strcpy(red_string, new_red);
For the most part, the function’s body is no different than any other function body.
But there are two special features about a member function’s body . . .