This assignment is based on the Duck example in Head First Design Patterns (p. 1-24)
Work through the stories in order. Use the acceptance criteria to check each feature, and complete the nested tasks using the specified names, values, and scenarios.
5.Add functionality to the code with the following rules:
ACreate a MallardDuck, RedheadDuck, DecoyDuck, and RubberDuck and add them to a list.
BIterate through the list of ducks, calling DisplayDuckInfo
CThe console should print out the type of duck, its swim behavior, its fly behavior, and its quack behavior. The end result…
The console should print out the type of duck, its swim behavior, its fly behavior, and its quack behavior. The end result should look similar to the snip below:
End Duck Result
Completion review
6.Review the feature acceptance criteria
AConfirm the required results
Return to each story and verify its acceptance criteria. Preserve the submission format and destination stated in the activity; a reading, setup guide, lab, video demonstration, and oral final may require different evidence.