Class and Constructors

I do not know where to begin this problem. Can anyone help me out? I do most of my programming in VB. C++ is proving to be a challenge.

Write a program that implements a class that stores an integer in the range of -42 to +42
inclusive. Your program should an integer variable, a default constructor that initializes the
variable to 0, a constructor with one parameter that initializes the variable to the passed value,
get and set functions for the variable, and bool member functions that indicate if the stored
integer is odd, even, positive, negative, or zero. Make sure that you implement your class such
that only appropriate values [-42 to +42] can be stored!

Topic archived. No new replies allowed.