• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the output for this Class

 
jami siva
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the output for the above code , In K & B,page 281, they given output as :
A. The output could contain 30
B. The output could contain @bf73fa




But when i run this application ,i got compilation error , because getBidValue() is not there in enum class.

Any one help for this
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely a spelling error. Try getValue rather than getBidValue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic