Tenouk's C and C++ Site: "C++ Objects and Classes"
Read section 12.3. Please note that the concept of classes is the same in different languages, though the syntax varies.
Click http://web.archive.org/web/20150507105145/http://www.tenouk.com/Module12.html link to open resource.