Question: 5. Write a class called 'Date' that has three integer attributes day, month, year. It has a setMonth function that throws an exception if the

5. Write a class called 'Date' that has three integer attributes day, month, year. It has a setMonth function that throws an exception if the value is less than 1 and more than 12. Write the main function to test your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
