Take the description of your average PC hardware below and draw a class diagram that captures the different classes of hardware components and the relationships between those classes.
PC hardware list:
- Base Station (Tower);
- Keyboard;
- Combined CD and DVD Recorder;
- Motherboard;
- Screen;
- Mouse.
The relationships between these parts are as follows:
- The Base Station contains the Motherboard;
- The Base Station also contains a combined CD and DVD Recorder (Superdrive);
- The Base station is connected to a Keyboard, a Screen and to a Mouse.