CS 371 Lab #6: Classes and Instances
Monday, February 27, SH 118b
For each component we are modeling, our goal this lab
is to get many instances defined in actual code. For classes with
many instances, we will do representative examples.
Where do you get this data? From your own designs.
Who does what? Basically you need instances for initial prototyping of
objects related to your subteams' responsibility. But, another way to
look at it is: everybody needs instances of the entire game pretty much.
- For each class in your HW#3, write a .cpp file that contains the
corresponding information, as much as you have worked out so far.
(Hint: can your UML tool generate anything useful, or are you better off
working on it by hand?)
- Write a "prototype stub" consisting of a main() function that
declares pointers to each class type and creates instances (via new)
of each class.
Turn in your instance data at
http://www.cs.nmsu.edu/~jeffery/turnin.html