Skip to main content

Writing java code the OOPS way?

4 replies [Last post]
venuwin
Offline
Joined: 2008-03-31
Points: 0

Hi,

I and my friend yesterday were discussing about a project in his company that was doomed.

The reason given by the client for the decision was that " Your developers have coded java in a procedural way and not in an Object oriented way".

I am not so clear on this. Could someone tell with few examples(or some URLs) the difference between Procedural Java and OOPS style java?

Thanks
Venu
Edit/Delete Message

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dma02
Offline
Joined: 2006-06-20
Points: 0

Technically it is true that there is no such thing as a procedural java. But what I think was meant was that if someone writes an entire program in just 1 class. Like having a monolithic class file with 40,000 lines of code in it.

I guess they're checking if the code was decoupled enough to really be modular.

peter__lawrey
Offline
Joined: 2005-11-01
Points: 0

> I and my friend yesterday were discussing about a
> project in his company that was doomed.
I think we have all been there. ;)

> The reason given by the client for the decision was
> that " Your developers have coded java in a
> procedural way and not in an Object oriented way".
Sounds like http://img527.imageshack.us/img527/3153/dilbertmauvech9.jpg

OOP isn't a business requirement, if thats all they wanted, Java is written in an OOP manner, give them that.

> I am not so clear on this. Could someone tell with
> few examples(or some URLs) the difference between
> Procedural Java and OOPS style java?

Google is a good way to find things http://www.google.co.uk/search?q=procedural+vs+oop+programming 6,790,000 hits,!

You should also read this page http://en.wikipedia.org/wiki/Buzzword_compliant

peter__lawrey
Offline
Joined: 2005-11-01
Points: 0

Oh, and there is no such thing as "Procedural Java".

venuwin
Offline
Joined: 2008-03-31
Points: 0

Hi Peter,

Will go through the links and you know my findings :)

Thanks for your kind support

Venu