Back to notes -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'        Slide program -- Keyboard shortcut: 't'    The program that uses the operator - nothing new here.Lecture 3 - slide 32 : 36
Program 3
#include <iostream>
#include "point.h"

using namespace std;

int main(){

  Point p(1.0, 2.0),
        q(3.0, 4.0);

  p.move(1,1);
  q.move(1,1);

  cout << "Point p: " << p << endl;   // (2,3)
  cout << "Point q: " << q << endl;   // (4,5)
}