CPP Object References

Regarding all zip files for download.

  • All downloadable zip files contains a Microsoft Visual CPP solution with code examples.
  • Needed tools for all examples can be found in the right menu on this page.
Create Reference to Object Download
Creating a C++ Class and make Reference to the object of that Class. UsingReference.zip
Reference as method argument Download
Using reference to an object as argument to a method ReferenceArgument.zip
Const reference as method argument Download
Using const reference to an object as argument to a method ReferenceConst.zip
Dangerous return of reference Download
Dangerous return of an object reference from a method: ReferenceDangerous.zip
Return Reference to object on the free store Download
Returning an object reference from a method, where the object exists on the free store ReferenceFreeStore.zip

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.