More Fun With Classes (Hero & Monster Revision)

This is a revision of a previous blog posting of the Hero & Monster fight program. I decided to do some actual class seperation of the Character, Dice, and DisplayResult classes. I decided to also incorporate some private methods along with public methods in these classes that other parts of the program could use. I know that this program is really small in scale so you might be thinking why seperate things out? Well this will show the ability to use different classes based on the program function at any partcicular runtime. And how you can use public and private methods inside the classes to do work and generate results.

Continue reading