The UML class diagram is a rectangle that has three sections. Fill in the members with necessary symbols for public, protected and private members.
class Square
{
public:
// unlisted members
void resize(double newSide);
void move(Pair
protected:
void erase();
// other members
private:
double side;
Pair
};
The top section contains the name of the class. The second section contains the data specification for the class. The third section contains the function member. The + sign means public member, the # sign means protected. The – sign means private. The ellipsis (. . .) means there are omitted members.
Computer Science & Information Technology