
If you do not know how to do this then please refer to OOP Concepts and look under objects, then class.
For those who have not viewed Objects, the private data structure called Person has the following attributes.
1. First name
2. Last name
3. Age
4. Weight
with the following methods or operations for The Person object:-
1. set_first_name
2. get_first_name
3. set_last_name
4. get_middle_name etc..
All private data members of a class are placed inside the box but on the far left side.
On the right side of the diagram, operations are drawn inside boxes with parameters pointing either in or out, depending on what the operation is doing.
For those wishing to learn more ways of representing class diagrams, take a look at the books mentioned below.
2. Object Oriented Modelling and design (1991) by Rumbaugh, J and Blaha, M and Premerlani, W and Eddy, R and Lorensen, W. Publised by Prentice Hall