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
Read the following articles. Write a paper of at least 600 words that summarizes each and then compares them.
"Reading maketh a full man; conference a ready man; and writing an exact man." Bacon, Essays, Of Studies
Write clearly, precisely, and concisely. The audience is other students in the class. Remember that you are writing, not conversing.
Draft is Due next Monday. Paper is due next Wednesday.
Consult/Read "The Elements of Style," http://www.bartleby.com/141/index.html, by William Strunk, Jr.
| There were a great number of dead leaves lying on the ground. | Dead leaves covered the ground. |
| The sound of the falls could still be heard. | The sound of the falls still reached our ears. |
| The reason that he left college was that his health became impaired. | Failing health compelled him to leave college. |
| It was not long before he was very sorry that he had said what he had. | He soon repented his words. |
