Pass a Message to Object
class string {
char data[80];
public:
void store(char *);
int length();
}
string s, t;
s.store("Hi Mom");
len = s.length();
The user of the string class need not to know the implementation details.
Previous slide
Next slide
Back to first slide
View graphic version