lab_inheritance
Insidious Inheritance
|
A subclass of Drawable that can draw a truck. More...
#include <truck.h>
Public Member Functions | |
Truck (const Vector2 ¢er) | |
Truck (const Truck &other) | |
Truck & | operator= (const Truck &rhs) |
Vector2 | center () const |
void | set_center (const Vector2 ¢er) |
void | draw (cs225::PNG *canvas) const |
solution for test_pure_virtual More... | |
A subclass of Drawable that can draw a truck.
|
virtual |
solution for test_pure_virtual
make sure you draw wheels after everything else!
Implements Drawable.