Slide 30 of 38
The examples we’ve looked at so far are a sufficient guide to writing the constructors and assignment operators. So we are going to focus on two methods:
The swap() member function and,
A setParts() method that updates the parts.