Lecture 4 - Slide 18 : 40
Copying Point objects in parameter passing

It is possible to copy objects as part of initializations and in assignments

Plain and simple value semantics is used for objects of class types in C++

We write a program that passes Point objects in and out of trivial identify functions

We want to illustrate what happens when objects are passed in and out of functions

Funny constructors reveal what happens

point.h
Class Point with a variety of constructors.
point.cc
Funny implementations of constructors.
prog5.cc
Passing Point objects in and out of functions.
prog5-output
Actual program output.