lab_inheritance
Insidious Inheritance
Flower Class Reference

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

#include <flower.h>

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

Public Member Functions

 Flower (const Vector2 &center)
 
void draw (cs225::PNG *canvas) const
 This method will draw the object onto the canvas. More...
 

Detailed Description

A subclass of Drawable that can draw a flower.

Member Function Documentation

◆ draw()

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

This method will draw the object onto the canvas.

Parameters
canvasto draw onto.

Implements Drawable.


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