Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making acode OO

 
Fitz Herbert
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
Layne
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic