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

 

1417693-20240311205452115-980289348

 

posted @ 2024-03-11 20:56  派若多克斯  阅读(34)  评论(0)    收藏  举报