Question :
Give an example of a message which contains a : 2043790
- Give an example of a message which contains a semantic error.
- Write a constructor which has no parameters for the Date which will set its value to January 1, 2006.
- Write a constructor which has three parameters d, m, and y, which will construct the specified date object.
- Write a accessor method for the day part of the Date class.
- Write a mutator method which will change the year of the Date class to the value passed as parameter y.
Solution
5 (1 Ratings )
Related Answers