Lecture overview -- Keyboard shortcut: 'u'  Previous page: Object copying -- Keyboard shortcut: 'p'  Next page: Example of copying objects: Default copying -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Abstraction Mechanisms, Part 1 - slide 14 : 36

Copying Point objects in parameter passing

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.