001package headfirst.combining.observer;
002
003public class Quackologist implements Observer {
004
005        public void update(QuackObservable duck) {
006                System.out.println("Quackologist: " + duck + " just quacked.");
007        }
008
009        public String toString() {
010                return "Quackologist";
011        }
012}