Lecture 4 - Slide 40 : 40 |
We program a few funny Point operators: ++, +, and ==
Both as members and as friends
![]() | Definition of Point member functions. |
![]() | A program that illustrates uses the Point operators. |
![]() | Program output. |
![]() | Definition of Point member functions and non-member operators. |
![]() | An identical program that illustrates uses the Point operators. |
![]() | Program output. |