File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Making acode OO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Making acode OO" Watch "Making acode OO" New topic

Making acode OO

Fitz Herbert

Joined: Mar 22, 2003
Posts: 21
This is a piece of code i have writen for the cattle drive and i wish to know how to make it more oo

any response would be great!!
[ June 11, 2003: Message edited by: Dirk Schreckmann ]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Honestly, I think you have done a good job with such a simple problem. OO design usually is stronger with more complex programs. Of course, it's good to practice with small programs like this, but you should realize that often an object-oriented approach will be slightly more code that a straight procedural one. With larger projects, this price is negligible compared to the savings in maintenence and other areas.
Okay, enough rambling. I say it looks good. From a brief glance at the code, I could understand exactly what you were doing.
Keep coding!

Java API Documentation
The Java Tutorial
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Sorry, Fitz. We don't allow posting coded solutions to Cattle Drive assignments 'round these parts.
Yer certainly asking the right type of questions, pardner. I suggest you head on over to the OO forum and check out The OOCalc Tutorial. It's right good.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
subject: Making acode OO
It's not a secret anymore!