CSCI 1301 Instance Class Example

I have uploaded a sample instance class, more-or-less fully developed, to illustrate how an instance class should be developed and the various types of methods (public and private) it should contain. Study this carefully and notice all the methods I have included, particularly the modifier methods and the comparison methods. The latter aren’t really mentioned in the book but should be a part of any instance class!

Sample Class:

I will provide a sample application program for testing this class later. For now, consider how you would fully test this class.

Print Friendly, PDF & Email

Comments are closed