… It is much better if data and processes are distributed through the classes in the place where they best fit. In the snakes and ladders game there are some objects that will need to be created, namely: GameBoard. PlayerPiece. BoardSquare. Snake. Ladder. Die …
CITATION STYLE
Parsons, D. (2012). Objects Working Together: Association, Aggregation, and Composition. In Foundational Java (pp. 125–157). Springer London. https://doi.org/10.1007/978-1-4471-2479-5_7
Mendeley helps you to discover research relevant for your work.