• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
author
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic