[SOLVED] River Crossing

30.00 $

Categories: ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon RiverCrossing.zip (9.1 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (3 votes)

Learning Objectives

Refactor according to coding guidelines and provide a better design without modifying the functionality

Requirements

  1. Factory Pattern Add class DuckFactory to the simulator. The duck factory should handle the creation of all ducks. It will have a method called createDuck
  2. Adapter Pattern – Write an adapter called GooseDuck
  3. Observer Pattern – Use the Java Observable class and Observer interface to implement the observer pattern. The duck factory will be the subject (observable) and the duck will be the potential observers.
  4. Decorator Pattern – Add an abstract decorator class Bling to ducks. You should have 3 types of bling represented by the following classes: StarBling, MoonBling, and CrossBling.
  5. Strategy Pattern – Use the Strategy Pattern to encapsulate flying behavior and quacking behavior.
  • RiverCrossing.zip