- number-plate 文章提出了一种车牌照字符倾斜的校正方法
- display-0-to-9999-by-four-digitrons 是四个数码管显示0~9999.是学习数码管的基础啊
- POWERVR-SGX.OpenGL-ES-2.0 POWERVR SGX.OpenGL ES 2.0 Application Development Recommendations.1.8f.External.pdf
- STM32_-GPS-ucgui-ucos 基于STM32的UCOSII与UCGUI设计点2
- Particle Replacement EDEM离散元软件中颗粒替换与填充编程模版
- 16779567 仿winamp的mp3播放器Imitatewinampmp3player()
文件名称:StudentTest
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1kb
-
已下载:4次
-
提 供 者:
-
相关连接:无
-
下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
/*(1) 定义一个Java类来表示学生信息,类名为Student ,包含属性有:int类型的id(学号)、String类型的name(姓名)、double类型的grade(成绩)和int类型的age(年龄)。
(2)编写一个StudentTest类来创建并使用一个或多个Student对象,要求输出:
学号 姓名 成绩 年龄
1 张三 89 20
2 李四 98 21
(3) 修改学生类,将各个属性改为private类型的,然后添加相应的get和set方法用来获得和设置属性,然后修改StudentTest类通过get和set方法获得和设置属性。
(4) 为学生类添加带参数的构造函数以便用户初始化对象的数据。*/-Define a Java class, Student information that Student named, contains attributes are: the id (int type), and the type of Student id name moves (name), double type of grade (int), and the type of age-related damage (age).
(2)编写一个StudentTest类来创建并使用一个或多个Student对象,要求输出:
学号 姓名 成绩 年龄
1 张三 89 20
2 李四 98 21
(3) 修改学生类,将各个属性改为private类型的,然后添加相应的get和set方法用来获得和设置属性,然后修改StudentTest类通过get和set方法获得和设置属性。
(4) 为学生类添加带参数的构造函数以便用户初始化对象的数据。*/-Define a Java class, Student information that Student named, contains attributes are: the id (int type), and the type of Student id name moves (name), double type of grade (int), and the type of age-related damage (age).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
StudentTest.java