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 and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 3 - Page 31 : 36
Notes about C++
Abstraction Mechanisms, Part 1
Friends - class Point - notational convenience

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

y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/friends/point-with-friends/point.hClass Point - header file.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/friends/point-with-friends/point.ccClass Point - implementation - not important for this example.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/friends/point-with-friends/prog.ccThe program including implementation of friend moving functions.


Which moving operation do we prefer? The move member, Move1, or Move2 ?