First page Back Continue Last page Graphics
Classes cont.
Operator overloading
Simple structures inside classes can use default assignments (object1 = object2).
Other more complicated object data need overloaded assignment operator. (linked lists)
Adding two times, may be more than just adding the integer fields.
Time Time::operator+(const Time & t) const (see page 451)