Student class is a child of Person class:
- The constructor of the Student class should check if the person is older than 18 years, and
then generates a student number in the pattern G2022XXXX where G will be 1 for males and
2 for females, and XXXX is a serial number reflects the order of the student in registration
(first student gets 0001, tenth student gets 0010, and so on). Hint you can use (zfill) function.
- Provide a method called setCollege that accepts a College object, first of all you have to
check if the capacity accepts a new student, if not you have to show the student a suitable
message, if the student has accepted in a college you have to call updateTotalStudent
method.
- Provide a method called getInfo that prints the information of a specific student in a wellorganized appearance.
- You have to generate two College objects and at least 2 students at each one.