Lecture overview -- Keyboard shortcut: 'u'  Previous page: Friends - Class Point - operator friends -- Keyboard shortcut: 'p'  Next page: Discussion - Encapsulation, Visibility and Access -- 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 33 : 36
Notes about C++
Abstraction Mechanisms, Part 1
Friends - Class Point - implicit conversion

The left operand of the dot operator cannot be implicit converted.

The parameters of a friend function can be used instead.

  • The C++ Programming Language: Page 281
 

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


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/friends/point-with-friends-conversion/point.ccClass Point - implementation - including the implementation of operator<<.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/friends/point-with-friends-conversion/prog.ccThe program that use the operator.