Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes Regarding OO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding OO" Watch "Regarding OO" New topic

Regarding OO

Greedy thomas
Ranch Hand

Joined: May 15, 2003
Posts: 37
Hello All

I've been asked to model a design of a chess game. I have written out flowchart for the showing out the procedure flow using rectangles and ellipses. My question is : Is this considered non-OO to design using a flowchart. I've tried using Use Case Diagram but the only thing I can put there is two actors on either side with both interacting with a 'Move Piece' oval between them.

If flowcharting is not considered OO, then could someone please explain why.

What would be the best method to design the above.

Thanks In Advance.
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
You certainly want to show a class diagram.

Then, convert your flowchart into a state diagram or an activity diagram.

Mike Gershman
SCJP 1.4, SCWCD in process
Svend Rost
Ranch Hand

Joined: Oct 23, 2002
Posts: 904
You focus on the dataflow in a flowchart, and not the interaction between
the different objects.

I assume that your taking a class about programming/Sys. Develeopment or
something similar and I would therefor recomment you to get a book
about OO Analysis and Design from the bookstore/amazon/library...

/Svend Rost
[ October 11, 2004: Message edited by: Svend Rost ]
I agree. Here's the link:
subject: Regarding OO
It's not a secret anymore!