Constructing an Object (class data and more methods)
At this point in the object tutorial, we have built a Slot class that
builds a simple object with a few attributes and provides accessor
routines for those attributes the user might need, but we don't have a
working slot machine by any means. Our slot machine will be a variation
on the lucky-7 variety with 3 spinning wheels each containing the
following digits: 0,1,2,3,7. Three sevens will pay the most, followed
in descending order by three threes, three twos, three ones, three of
any combination of one, two and three, and three zeros.
The payoff scheme will be as follows (I don't have much experience slot
machines and odds, so I'm making this up as I go along
» posted by ITworld staff
ITworld
Win an Amazon Kindle!
This month's giveaway gadget - Amazon's Kindle - will keep you entertained on the long trip home to visit family and friends over the holidays. Enter the drawing now!
Applied Security Visualization
By Raffael Marty
Published by Addison-Wesley Professional
Learn more!

IT Manager's Handbook
By Bill Holtsnider and Brian D. Jaffe
Published by Morgan Kaufmann
Learn more!

Windows Vista Resource Kit
By Mitch Tulloch, Tony Northrup, and Jerry Honeycutt
Published by Microsoft Press
Learn more!








