String Class Example
Let’s build a complete class using operator overloading to
demonstrate the rules and guidelines discussed
We will re-examine this example again next lecture when
discussing user defined type conversions
The operations that make sense include:
= for straight assignment of strings and char *’s
>> and << for insertion and extraction
+ and += for concatenation of strings and char *’s
<, <=, >, >=, !=, ==  for comparison of strings
[] for accessing a particular character in a string