CS202
2- ‹#›
Defining a Class...
n
Once we have decided on how the new type of
data should behave, we are ready to define a
class:
ä
class data_type_name {
ä
public:
ä
//operations go here
ä
private:
ä
//memory is reserved here
ä
};
n