The class ColourValue has a single field of type int that is used to hold a value representing an index into a colour pallette. The class provides an accessor (get method) and a mutator (set method) for this field. Both methods are visible to all other classes. The constructor of ColourValue takes a single parameter containing the initial value for the field.
Write a complete definition of the class ColourValue.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment