• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

enum

 
Enkita mody
Ranch Hand
Posts: 333
Firefox Browser Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Output completed (0 sec consumed) - Normal Termination

I was expecting code=B ?
 
Matthew Brown
Bartender
Posts: 4565
8
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
private methods can't be overridden. Try making getCode() protected, for instance, and see what happens.
 
Enkita mody
Ranch Hand
Posts: 333
Firefox Browser Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic