#ifndef _RECT_H_ #define _RECT_H_ #include "common.h" #include "shape.h" struct _rect { // int invalid; struct _rect *me; // super struct _shape *shape; // attribute double width, height; }; struct _rect *rect_new(double width, double height); double rect_area(void *self); void rect_draw(void *self); #endif