This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes BJO - enum - what special to OO  ???? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "BJO - enum - what special to OO  ????" Watch "BJO - enum - what special to OO  ????" New topic
Author

BJO - enum - what special to OO ????

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3829
Hi Jacquie,

You were talking about enum in 'OO advantage of Java 5' post. Really, first time I understand the need of enum. But where OO comes into picture. I mean why the title was 'OO advantage of Java 5'??

Please comment on this..

Thanks a lot.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
An enum is allowed to have polymorphic behaviour - that is, methods that are implemented differently for each enum value. Contrast this with public static int fields, which are the most common alternative...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Jacquie Barker
author
Ranch Hand

Joined: Dec 20, 2000
Posts: 201
Originally posted by rathi ji:
Hi Jacquie,

You were talking about enum in 'OO advantage of Java 5' post. Really, first time I understand the need of enum. But where OO comes into picture. I mean why the title was 'OO advantage of Java 5'??

Please comment on this..

Thanks a lot.


I was a bit loose with my wording in that post ... I should have stated it more along the lines of the key advantages, from a software principles perspective, of Java 5 ... please see how I've gently reworded it.

Best,

J.
[ July 13, 2005: Message edited by: Jacquie Barker ]

Author of Beginning Java Objects, Beginning C# Objects, and Taming the Technology Tidal Wave
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: BJO - enum - what special to OO ????
 
Similar Threads
Bookmark Entity
is enum specific to Java 5?
keywords confusion
pattern in java constant files