posted by WayneR
Create a class named Year that contains data fields to hold the number of months in a year and the number of days in a year. Include a constructor that sets the number of months to 12 and the number of days to 365, and get and set methods for each field.
b. Design an application that instantiates one object of each class and displays all the data.