Next:
Input and output
Up:
Basic class semantics
Previous:
User-defined memory allocation
Contents
Using object pointers
Suppose
ttsPtr
is a pointer to a
TimeStamp
object
Two equivalent ways to call its methods:
(*ttsPtr).update();
ttsPtr->update();
Prefer second way over first
Leo Liberti 2008-01-12