You have recently learnt of a pattern called the command
pattern. Your task for this is devise your own test question
and memorandum based on the command pattern (you are not allowed to
use the waiter/chef or remote control example). To complete this
task you need to complete the following :
1. Provide a scenario for the test. This scenario must be in the
form of at least one paragraph. It needs to include enough
information so that the student who needs to write the test will be
able to conclude who / what the entities are in the scenario which
align to the command pattern – the question may not tell the
student directly how the scenario aligns to the pattern.
2. Ask an initial question which requires that the student write
down a UML class diagram which contains both the generic names of
the entities in the command pattern as well as the names aligned
with the provided scenario.
a. Provide the completed UML diagram as the memorandum for this
part of the question.
3. Ask the student to write down the code required for the solution
and describe what they need to do in the main program to
demonstrate how the command pattern works.
a. Provide the completed code as the memorandum for this part of
the question.
You have recently learnt of a pattern called the command pattern. Your task for this is devise your own test question a
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
You have recently learnt of a pattern called the command pattern. Your task for this is devise your own test question a
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!