Exercise 2Make a class called Student, with the following elds& methods: age of type integer, private name of type String, private id of type integer, private grade of type double, private one constructor that sets age, name, id, and grade setters and getters for all the private elds Make an executable class called Exercise2, with main method De ne an array of three students:“Zhang”, 21 years old, id 13579, grade of 68.5“Wang”, 19 years old, id 13784, grade of 89.2“Chang”, 20 years old, id 24680, grade of 76.7 display which student is oldest display which student is best in school
JAVE基础实验 Experiment3(3)
2021-01-07 09:21
JAVE基础实验 Experiment3(3).doc
将本文的Word文档下载到电脑
下载失败或者文档不完整,请联系客服人员解决!