Exercise 2, Design
The tasks will be solved at the scheduled exercise, which will be recorded and published on this page. Exercises are not mandatory, but instead an opportunity to practice before starting working on assignments.
Each exercise is scheduled twice in the schema, both instances will have the same content. Please attend only one of them. The purpose of the duplication is that there will be fewer participants, which should encourage discussions and interactions.
This exercise covers lectures 5-7 and chapter 5 in the textbook. You must have watched the lectures or read the book to understand the exercise, but you don't have to understand everything in detail before the exercise.
- Here are the tasks for exercise 2, design-exe.pdf.
- Here's the finalized solution that we were heading towards in both exercise sessions, design-exe-solution-2022-fm.asta Download design-exe-solution-2022-fm.asta. It's an OK solution, but perhaps not ideal. It makes Controller depend on Account, and it also makes the controller do many different things, perhaps eventually becoming a spider-in-the web if we continue this way with other system operations. It's probably better to instead first retrieve the holder from the holder registry, and then pass also the holder object to createAccount in AccountRegister, and let that method call addAccount in Holder.
- Here's the recording of the zoom exercise session 15-17, https://youtu.be/nSVwJMvH98A Links to an external site.