Question: You need to implement Classroom and Student classes with their appropriate attributes, getters, setters, and methods mentioned above (enter & leave). The output of the

You need to implement Classroom and Student classes with their appropriate attributes, getters, setters, and methods mentioned above (enter \& leave). The output of the code above will be: The student: Ali Mosa entered the class. The student: Ali Mosa left the class. 2. Improve the code by making the enter method checks if the same student has already entered the class. If the student is already in the class, the message will be: Also, the code for leave method should be updated such that if the student has already left it will print some thing like: Kingdom of Saudi Arabia Ministry of Higher Education College of computer The output of the code above will be: The student: Ali Mosa entered the class. The student: Ali Mosa has entered the class. The student: Ali Mosa left the class. The student: Ali Mosa has already left the class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
