class construct in C++ is an enhancement of the
struct construct in C.
class Name
{
public:
// Declarations of public members...
protected:
// Declarations of protected members...
private:
// Declarations of private members...
};
.) to access members through an object.
->) to access members through a pointer to
an object.
Point Class - point.h,
point.cpp
Complex Class - complex.h,
complex.cpp

This page was last modified on Oct 25, 2000
URL: http://people.hsc.edu/faculty-staff/robbk/Coms262/Lectures/Classes.html