文件名称:StudentTest
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:875byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
个人原创代码:编写Java Application程序,定义一个学生类(Student),属性有private的名字(name), public的年龄(age),专业(specialty)和封装name属性的方法:setName(),getName(),getspecialty()编写Application,创建一个学生对象,设置name和age属性值,然后调用一个方法(此方法将对象作为参数传递,在方法中打印出学生的名字name和年龄age)。(学生类仅包含静态成员变量和方法。)-The original code of the individual: using java application procedures, the definition of a student class (Student), the properties have private name (name) method of the public age (age) and professional (specialty) and package name attribute: the setName (), getName (written in), getspecialty () Application, create a student object, set the name and age of property value, and then call a method (This method is the object passed as a parameter in the method to print out the name of the student s name and age of age). (Student class only contains static member variables and methods.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本Java程序设计详细要求.txt
StudentTest.java
StudentTest.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.