December 2001
Beginner
976 pages
22h 4m
English
![]() | Applying It |
Try to complete the following exercise by yourself.
Modify the example you used for namespaces to export an enumeration and a function that transforms a string to the enumerated value. For example, use CardSuit enumeration containing the four suits (spades, hearts, diamonds, and clubs), and create a function that will accept a String parameter (like heart) and return the enumerated value that corresponds.
Read now
Unlock full access