| 
    lab_inheritance
    
   Insidious Inheritance 
   | 
 
A subclass of Drawable that can draw a flower. More...
#include <flower.h>
Public Member Functions | |
| Flower (const Vector2 ¢er) | |
| void | draw (cs225::PNG *canvas) const | 
| This method will draw the object onto the canvas.  More... | |
  Public Member Functions inherited from Drawable | |
| ~Drawable () | |
Private Member Functions | |
| void | drawPetals (cs225::PNG *canvas, const Vector2 ¢er, int x, int y) const | 
Private Attributes | |
| Shape | stem | 
| Shape | pistil | 
| Shape | leaf | 
A subclass of Drawable that can draw a flower.
| Flower::Flower | ( | const Vector2 & | center | ) | 
      
  | 
  virtual | 
This method will draw the object onto the canvas.
| canvas | to draw onto. | 
Implements Drawable.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |