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
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库JAVE基础实验 Experiment3(3)在线全文阅读。
相关推荐: