- how.not.to.program.in.c++ 本书列举了大量有bug的程序
- Set-of-the-classical-algorithm C/C++里一些经典的算法
- cycle 绘制圆形的matlab代码
- SDKReferenceManual.rar This manual contains information for software developers intending to write applications for Zebra Value/Performance Class Card Printers. The application programming interface (API) provides functions to access card printer features. The Zebra printer drivers run on the following Windows Operating Systems: • Windows XP • Windows Server 2003 and Server 2008 • Windows Vista • Windows 7 (32/64 bits) This manual is part of the Zebra Card Printer Software Developer’s Kit (SDK).
- xmlParse java 实现解析xml 使用dom和sax 可以帮助初学者深入理解java 解析xml的方法
- EduPatrol android 教务巡查源码 系统源码系统源码系统源码系统源码(Android educational inspection system source code source code system source code system source code system source code)
文件名称: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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
