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

 ~Drawable ()
 
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.

Constructor & Destructor Documentation

◆ ~Drawable()

Drawable::~Drawable ( )
inline

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 Shape, Triangle, Rectangle, Circle, Line, and Flower.


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