Forums Register Login

static concept in Java really kill object oriented concept

+Pie Number of slices to send: Send
I read some article ,it says static concept in Java really kill object oriented concept,then why this feature still exist in java???.IT is used for utility class is less priority!!!
[ November 20, 2008: Message edited by: jacob deiter ]
+Pie Number of slices to send: Send
What do you mean by "kills object oriented concept"?

To me, this is a sort of theoretical debate, along the lines of "pure oo". Depending on how you want to define the terms, Java is or is not OO. The same goes for C++ and most other languages you could name.
+Pie Number of slices to send: Send
The Java lanuguage supports non-object-oriented design and code as well. Everything is not "automatically" OO simply because it was written in Java.

I have seen "extremely anti-object-oriented" servlets with everything in the world (100's of statements) crammed in its service() method.

I would say, using "static" in certain places might be considered anti-OO design. Using it in other places might not be so bad. It depends on how and where it is used.
[ November 20, 2008: Message edited by: James Clark ]
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1804 times.
Similar Threads
Object oriented concept
Is java is purely object oriented or not?
Object oriented concepts in Java
Java object based or object oriented
java -A pure OOPS?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:22:53.