/* _____________________________________________________ W O R K I N G W I T H C L A S S E S P A R T 2 R E C T A N G L E C L A S S Ron Kessler Created 1/20/2017 This is the same rectangle class we used in part 1 _____________________________________________________ */ #pragma once using namespace std; class Rectangle { private: double width; //make these private for internal use only double length; public: Rectangle () { width = 0; //initialize our locals when the object is created length = 0; } ~Rectangle () { } //**************CREATE OUR METHODS***************** public: void setWidth (double w) { width = w; } void setLength (double len) { length = len; } //Now create our "getters" double getWidth () { return width; } double getLength () { return length; } double getArea () { return width * length; } };