#ifndef Shape_cpp #define Shape_cpp class Shape { protected: double length; double width; //Constructor public: Shape :: Shape() { length = 0; width = 0; } virtual double Shape :: perimeter() = 0; virtual double Shape :: area() = 0; double Shape :: getLength() { return length; } void Shape :: setLength(double l) { length = l; } void Shape :: setWidth(double w) { width = w; } double Shape :: getWidth() { return width; } }; #endif