Question: Add exception handling to your previous Student, Implementing Association, Aggregation, and Composition, as follows: 1. Should a student try to enroll in more than the

Add exception handling to your previous Student, Implementing Association, Aggregation, and Composition, as follows:

1. Should a student try to enroll in more than the Max defined number of allowable courses per student, throw a TooFulischedule exception. This class may be derived from the Standard Library exception class.

2. Should a student try to enroll in a course that is already full, have the course: : AddStudent (Student *) method throw a CourseFull exception. This class may be derived from the Standard Library exception class.

3. There are many other areas in the student / University application that could utilize exception handling. Decide which areas should employ simple error checking and which are worthy of exception handling.

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related A Practical In Depth Guide C++ Questions!