
7.18 Exercises,Problems,and Projects 451
EXERCISES,PROBLEMS, AND PROJECTS
31. Code a constructor for that class that takes three parameters.
// your constructor code goes here
32. Code the three accessors for that class.
// your code goes here
33. Code the three mutators for that class.
// your code goes here
34. Code the toString method.
// your code goes here
35. Code the equals method.
// your code goes here
36. Code a method returning the number of digits in the channel num-
ber. For instance, if the channel number is 21, the method returns 2; if
the channel number is 412, the method returns 3.
// your code goes here
37. Code a method returning the wor ...