- Ice 2 Group Work Exercise La Write A Class Named Date To Represent A Standard Date This Class Should Include Instance 1 (31.17 KiB) Viewed 25 times
ICE 2: Group Work Exercise la Write a class named Date to represent a standard date. This class should include instance
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
ICE 2: Group Work Exercise la Write a class named Date to represent a standard date. This class should include instance
ICE 2: Group Work Exercise la Write a class named Date to represent a standard date. This class should include instance variables for day, month and year. a. Write a constructor to create the Date with an initial date b. Write a method that is passed a day, a month, and year and checks to make sure it is valid. c. Write a method that is passed a new date to set. It should be passed all the day, month, and year, not just one. This method must check that the new date is valid (reuse your validator method from part b.) d. Write accessor methods to return each individual date element