Solutions: Exercise 4a

Designing Classes

Remember: The solutions below are only suggested solutions.

a) Classes to represent the symbols and their positions:

Classes Line, Circle, Rectangle to represent the symbols and class Point to represent the positions of the symbols.


previous | next | start | contents | dictionary | help | evaluation

© Ericsson Telecom AB, 1995, Stockholm, Sweden