Skip to content
Snippets Groups Projects
Commit 015623fe authored by Niklas Granander's avatar Niklas Granander
Browse files

Add readme to Task A

parent 851c1d00
No related branches found
No related tags found
No related merge requests found
# Task A: The Iterator and Strategy Patterns
In this readme, my best attempt of answering the given questions for task A of Lab 1 is presented:
#### 1. First, you should describe which elements implement the Strategy design pattern, and relate the concepts in that design pattern to the example code given. You should be able to reason with respect to both the basic example on GitLab and the elaborate one given above.
#### 2. Second, you should explain how the current implementation violates the principles of the Iterator design pattern (applicable to both the basic example on GitLab and the elaborate one given above)
#### 3. Third, you should correct the implementation provided so that it works as intended. Explain why it did not work initially.
#### 4. Fourth, you should explain how you encapsulated all objects in interfaces to enforce Interface Segregation, which states that all clients should use client­specific interfaces. This assumes that all methods accessible through an interface is useable by any client. In your explanation, provide sufficient code to explain how to extend the current implementation to the elaborate functionality given in the example above, by providing interfaces between the different classes.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment