CSE2305 - Object-Oriented Software Engineering
Week 4

Topic 7: C++ Classes


Synopsis


Classes¤


Declaring classes¤


Class¤ data members¤¤


Class¤ function members¤¤


Member¤ access control

[Diagram showing a two compartment box. Public members are in the         transparent compartment (and so can be seen from outside), whilst         private members are in the opaque compartment (and so can only be seen         from within the box).]

Creating objects of a given class¤


Accessing class¤ members¤


Constructors¤


Destructors¤


The this pointer


Reading


This material is part of the CSE2305 - Object-Oriented Software Engineering course.
Copyright © Jon McCormack & Damian Conway, 1998–2005. All rights reserved.