/* _____________________________________________________ W O R K I N G W I T H C L A S S E S P A R T 2 R O O M C L A S S Ron Kessler Created 1/22/2017 NOTE: In .Net, the word Rectangle is a keyword so I changed the name to Room. This is our room class. It is kept separate from our main code so we could access it from another class if we added one. It is always best to keep our classes and our implementations separate. When the program runs a new instance of the class will be created in our main() method and the user input will be passed to the new object. The data/values we set will be stored in memory along with the room object itself. _____________________________________________________ */ #pragma once ref class Room { private: double width; //make these private for internal use only double length; public: Room () { width = 0; //initialize our locals when the object is created length = 0; } ~Room () { } //**************CREATE OUR METHODS***************** public: void setWidth (double w) {width = w;} void setLength (double len) {length = len;} double getWidth () {return width;} double getLength () {return length;} double getArea () {return width * length; } };