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)
Class Point - header file.
Class Point - implementation - not important for this example.
The program including implementation of friend moving functions.
Which moving operation do we prefer? The
move
member,
Move1
, or
Move2
?