CPSC 330, January 23, 2009

News

Making your computer green:

Press Spacebar to continue

Review

About Java Interface

Abstract Class

Press Spacebar to continue

JavaDoc

Prepare your work to include appropraite documentation as spelled out in the SUN style guide for JavaDoc

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


Creative Commons License
This work is licensed under a Creative Commons License.
Ernest Ackermann Department of Computer Science, Mary Washington College
CPSC 110 | CPSC 330 | CPSC 401

Bibliographic Information: