COSC 1320 - C++ Programming
Bob Comer, Professor, CIT/COSC
Assignment 5 - Rectangle Class
Read through Chapter 6 in your textbook before starting this assignment.
Write a class called Rectangle that represents a rectangle as a pair of float values - the rectangle length and width. The data members of the class should be private members. Your class should include the following public functions:
Write a small client program to test your class. It should print enough information to show that all the class functions work correctly.
Note: Do not use global variables in your program. Do not use any other data members in your class other than length and width.
Note: You can code your class specification, the class implementation, and your client program in the same file.
Copyright: Ó2000
by the Austin Community College
Department of Computer Studies. All rights reserved.
Comments to: Bob
Comer
Last updated: October 16, 2000