Back to notes -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'  Slide program -- Keyboard shortcut: 't'    Sample Rectangle constructions.Lecture 3 - slide 5 : 36
Program 5
#include <iostream>
#include "rect.h"

using namespace std;

int main(){
  Point p1(1,2), p2(5,-3);
  Rectangle r1,                 // Use default constructor
            r2(1,2,5,-3),                   
            r3(p1,p2),
            r4(Point(1,2), Point(5,-3));

  // use of points and rectangles
}