Now we better understand this...
class body {
public:
// the constructors for body
body();
body(Color *c);
// the destuctor
~body();
//… stuff deleted
}
We have more than one constructor for our “body” class; this is an overloaded function like any other.
Previous slide
Next slide
Back to first slide
View graphic version