Code Examples
from
Chapter 11
Classes, The Rest of the Story
of
Programming with Objects
NOTE: Browsers generally have difficulty displaying source code files in
their raw form. A browser may also gratuitously enclose a raw source
code file within html tags for the purpose of display. So it is best to
right-click on the items listed below and to then click on the "save
link as" or the "save target as" menu item for directly transferring the
file to your local disk.
Singleton.java
Singleton.cc
NoArgMissing.cc
PrivateConstructor.cc
MultiConstructors.java
Static1.cc
Static2.cc
Date.cc
Robot.cc
StaticInit.cc
Static1.java
Static2.java
Date.java
Robot.java
SelfRef.cc
SpecialInt.cc
SelfRef.java
SpecialInt.java
Destruct.cc
Destruct2.cc
DestructorNecessary.cc
DestructWhenNot.cc
GC.java
GC_Resurrect.java
CopyAssignX.cc
AssignTest.java
ClonableX.java
CloneBasic.java
CloneArray.java
CloneClassTypeArr.java
PointerDirectToMember.cc
Interleaved.cc
Interleaved.java
Back to the home page for Programming with Objects