nLet’s build a complete
class using operator overloading to
demonstrate the rules and guidelines discussed
nWe will re-examine this
example again next lecture when
discussing user defined type conversions
nThe 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