1class Rectangle
2{
3 int width, height;
4public:
5 void set_values (int,int);
6 int area() {return width*height;}
7};
8
9void Rectangle::set_values (int x, int y)
10{
11 width = x;
12 height = y;
13}
1class Rectangle {
2 int width, height;
3 public:
4 void set_values (int,int);
5 int area (void);
6} rect;