lab_inheritance
Insidious Inheritance
Truck Class Reference

A subclass of Drawable that can draw a truck. More...

#include <truck.h>

Inheritance diagram for Truck:
[legend]
Collaboration diagram for Truck:
[legend]

Public Member Functions

 Truck (const Vector2 &center)
 
 Truck (const Truck &other)
 
Truckoperator= (const Truck &rhs)
 
Vector2 center () const
 
void set_center (const Vector2 &center)
 
void draw (cs225::PNG *canvas) const
 solution for test_pure_virtual More...
 

Detailed Description

A subclass of Drawable that can draw a truck.

Member Function Documentation

◆ draw()

void Truck::draw ( cs225::PNG *  canvas) const
virtual

solution for test_pure_virtual

make sure you draw wheels after everything else!

Implements Drawable.


The documentation for this class was generated from the following files: