File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Cattle Drive and the fly likes is oop ok in a non-oop project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "is oop ok in a non-oop project?" Watch "is oop ok in a non-oop project?" New topic

is oop ok in a non-oop project?

pete stein

Joined: Feb 23, 2007
Posts: 1561
I've been working on Java-4a and 4b (Say). I have gotten both to work, but the code is neither simple nor clear.

My question: Would it be ok to use OOP constructs in these non-oop projects (especially Java-4b)? I think encapsulation would help make the code more understandable.

Thanks in advance!

Katrina Owen

Joined: Nov 03, 2006
Posts: 1367
I think we are supposed to arrive at a solution that does not need OOP. That said, if you have working code that uses OOP and can't figure out where to go with it, submit what you have and the nitpicks will guide you in the right direction.

Most likely you will end up removing the OOP for 4b, though (I think).

Okay, somebody else say something now before I ramble on indefinitely!

[edited for spelling]
[ March 11, 2007: Message edited by: Katrina Owen ]
Pauline McNamara

Joined: Jan 19, 2001
Posts: 4012
Ramble on Katrina, your advice is right on and most welcome!

Pete, as Katrina said, you aren't really expected to get into "real" OO stuff until you reach the next section of the Cattle Drive. For the first assignments it's kind of overkill.

Have fun with Say!
pete stein

Joined: Feb 23, 2007
Posts: 1561
Originally posted by Pauline McNamara:
Have fun with Say!

That almost sounds sarcastic? Nah.

Anyway, thanks for the advice. I will continue on.

I agree. Here's the link:
subject: is oop ok in a non-oop project?
It's not a secret anymore!