Class 2 |
Intermediate Java 30-IT-397 |
|
Exercise
(time permitting)
Revisit examples
if desired.
-
Download and install Poseidon if you have not done so already. Follow the
directions.
-
Get really daring and add Poseidon to Forte'.
-
Play around with the diagrams. Make at least one Use Case Diagram
and one Class Diagram. Add a Package Diagram and Sequence Diagram
if you so choose as well.
-
Make a simple use case diagram of a car and a driver.
-
Make a class diagram of:
-
Class Car
-
attributes intNumberOfDoors, intModelYear (type int), plus any other attributes
you wish.
-
Getters and setters for each of the attributes.
-
Class Honda extends Car
-
attribute blnImported (a boolean)
-
Class Pontiac extends Car
-
Class Transmission
-
Generate some code while you're at it.
-
If you have time, write a couple of quick classes and use File-Poseidon
Import from Sources to reverse-engineer source code into UML.
-
I'm not looking for perfection here. Just play around with it for
a little, take some time and experiment. Let me know if you have
questions.
Patterns

Created by: Brandan Jones
December 17, 2001