help with classes
Hi every one i am new at oop and i really need help in this assigment i have to create a class Rectange. the class has attributes Length and width each of which defoult to 1. It has to member functions that caculates the perimeter and the area of the rectange. I has set and get function bor both length and width . the set funciton should vertify that length and width are each floating point numbers larger than 0.0 and less then 20.0
can some one just help me how to start this programm and then i will get the idea how to do the rest
Try this. That should help you get started.
And this one is a masterpiece
Pay special attention to Polymorphic OOP thread.