This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes enum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "enum" Watch "enum" New topic
Author

enum

Enkita mody
Ranch Hand

Joined: Aug 06, 2012
Posts: 333


---------- Run ----------
TeaSize = OVERWHELM Size = 20 Code = A

Output completed (0 sec consumed) - Normal Termination

I was expecting code=B ?


OCA7
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4541
    
    8

private methods can't be overridden. Try making getCode() protected, for instance, and see what happens.
Enkita mody
Ranch Hand

Joined: Aug 06, 2012
Posts: 333

Thanks.
 
Have you checked out Aspose?
 
subject: enum
 
It's not a secret anymore!