lab_inheritance
Insidious Inheritance
Drawable Class Referenceabstract

A pure virtual interface class that can draw itself to a canvas. More...

#include <drawable.h>

Inheritance diagram for Drawable:
[legend]

Public Member Functions

virtual void draw (cs225::PNG *canvas) const =0
 This method will draw the object onto the canvas. More...
 

Detailed Description

A pure virtual interface class that can draw itself to a canvas.

Member Function Documentation

◆ draw()

virtual void Drawable::draw ( cs225::PNG *  canvas) const
pure virtual

This method will draw the object onto the canvas.

Parameters
canvasto draw onto.

Implemented in Truck, Triangle, Shape, Rectangle, Line, Flower, and Circle.


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