River Crossing Solved

30.00 $

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

You'll get a download link with a: . zip solution files instantly, after Payment


5/5 - (3 votes)

Learning Objectives

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


  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