Student Name: __________________
Class and Section __________________
Total Points (10 pts) __________________
Due: September 9, 2009 before the class
Project: The MyInteger Class
CSCI 1302 Advanced Programming Principles
Armstrong Atlantic State University
Problem Description:
Design a class named MyInteger. The class contains:
• An int data field named value that stores the int
value represented by this object.
• A constructor that creates a MyInteger object for the
specified int value.
• A get method that returns the int value.
• Methods isEven(), isOdd(), and isPrime() that return
true if the value is even, odd, or prime,
respectively.
Design:
Draw the UML class diagram here