Comprehensive Exercise1
define a Student class, including attribute as:
id, name, age,gender,height
design this class under the thought of OOP
define a StudentManagement class to manage a lot of students
inside,define methods:
(1)check if a student exist already (same id)
(2)add a new student
(3)delete student by id
(4)display all students
(5)dispaly student by id
in the entrace of programe, initialize an object of StudentManagement , then the process is like as below:
try to consider all the possible exception, solve it or avoid it


浙公网安备 33010602011771号