Lecture overview -- Keyboard shortcut: 'u'  Previous page: Friends - Example 2 -- Keyboard shortcut: 'p'  Next page: Friends - Class Point - operator friends -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Abstraction Mechanisms, Part 1 - slide 31 : 36

Friends - class Point - notational convenience

We wish to use the notation Move(p, dx,dy) instead of p.Move(dx,dy)

point.h
Class Point - header file.
point.cc
Class Point - implementation - not important for this example.
prog.cc
The program including implementation of friend moving functions.
Which moving operation do we prefer? The move member, Move1, or Move2 ?