CPSC 330, January 21, 2009
About Java Interface
Abstract Class
Press Spacebar to continue
Chapter 1 mentions several design principles
Design Principle
Design Principle
Design Principle
How are these demonstrated??
Press Spacebar to continue
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.
How is this demonstrated?
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
