Press Spacebar to continue
Chapter 1 mentions several design principles
Design Principle
Design Principle
Design Principle
Chapter 1 gives an example of the strategy pattern
The Strategy Pattern defines a family of algorithms, encapsulates each one and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
Press Spacebar to continue
Assignment due Monday, January 26, 2009
For Monday - set up a class for Muscovy duck. Some sources say it is a quackless duck. It certainly looks like it could fly.
Write an application similar to MiniDuckSimulator.java that shows off the features of a Mallard and a Muscovy duck.
The Brain Power item on page 23 asks "How would you implement your own duck call that does not inherit from the Duck class? " Write an implementation of a duck call class that does not inherit from the Duck class, and write an application to demonstrate it.
Press Spacebar to continue
The Observer pattern.
UML Diagrams for Observer pattern. Created using UMLet.
UMLet is an open-source UML tool with a simple user interface: draw UML diagrams fast, export diagrams to eps, pdf, jpg, svg, and clipboard, share diagrams using Eclipse, and create new, custom UML elements. UMLet runs stand-alone or as Eclipse plug-in on Windows, OS X and Linux.
Press Spacebar to continue
