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 point);

protected:

void erase();

// other members

private:

double side;

Pair topRtCorner;

};



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

You might also like to view...

How does the quicksort partition an array?

What will be an ideal response?

Computer Science & Information Technology

The _____________ of a circuit determines a circuit's capacity.

a. frequency b. bandwidth c. phase d. amplitude e. loudness

Computer Science & Information Technology