CPP Classes, Objects and Pointers
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 a Class |
Download |
Creating a C++ Class with nearly all types of class members |
FirstClass.zip |
Using address-of operator |
Download |
Shows how to use the address-of operator (&), which returns the address of an object in memory. |
AddressOf.zip |
Handling the free store |
Download |
Showing that every time an object is created that a constructor will be executed, and every time an object is deleted so will destructor be performed. |
CreatePointers.zip |
Accessing Objects on the free store |
Download |
Shows how to access members of objects created on the free store. |
AccessMembers.zip |
The this Pointer |
Download |
Every class member function has a hidden pointer: the this pointer, which points to "this" individual object. |
ThisPointers.zip |
Using Pointer reference to an object |
Download |
The cost and the difference between copy an object and copy a pointer reference to an object. |
UsingRefPointer1.zip |
Using const modifier with pointers |
Download |
How to use use const modifier with pointers. |
ConstPointers.zip |
Create Pointer to Object |
Download |
Creating a C++ Class and use pointer and create objects on the Free Store. |
UsingPointers.zip |
Using Pointer reference to an object |
Download |
How to use pointer as argument to a method. |
UsingRefPointer2.zip |
Using Pointer reference to an object |
Download |
How to use const pointer to const object as argument to a method. |
UsingRefPointer3.zip |
How to handle members as pointers |
Download |
Shows how to handle members as pointers and what you need to do in such cases. |
MembersAsPointers.zip |
Memory Leaks and Stray Pointers |
Download |
Shows what Stray, Wild, or Dangling Pointers is. |
DanglingPointers.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.