i have a problem to settle this question below cos im new to java just bening to learn. can any one help me in solve this problem.
Define a class called month. Your class will have one attribute of type int to represent a month (1 for January, 2 for February, and so forth). Include all the following methods in this class:-
a) a contractor to set month using the first three letter in the name of the
month as the three argument(‘J’,’A’,’N’ for January, ‘F’,’E’,’B’ for February
and so forth)
b) a constructor to set the month using an integer as an argument (1 for
January, 2 for February, and so forth)
c) a default constructor
d) an input function that reads the month as a integer
e) an input function that reads the month as the first three letters in the
name of the month
f) an output function that outputs the month as an integer
g) an output function that outputs that the month as the first three letter in
the name of the month
h) and a member function that returns the next month as a value of type
Month.
Test your class in a new program which has the main ( ) method
i dont knw how to define them