┌────────────────────────┐ │Bug │ ├────────────────────────┤ │- **float** x │ │- **float** y │ │- **float** size │ │-- │ │+ Bug() │ │-- │ │+ **float** getX() │ │+ **float** getY() │ │+ **float** getSize() │ │+ **void** setPosition()│ │+ **void** move() │ │+ **void** display() │ └────────────────────────┘ | | ┌────────────────────┐ │Swarm │ ├────────────────────┤ │- **Bug** queen │ │- **Bug** worker1 │ │- **Bug** worker2 │ │- **Bug** worker3 │ │-- │ │+ Swarm() │ │-- │ │+ **void** move() │ │+ **void** display()│ └────────────────────┘