student
所属分类:Java编程
开发工具:Java
文件大小:3KB
下载次数:1
上传日期:2014-06-07 23:47:25
上 传 者:薛广宗
说明: 根据下面要求,编写一个Java应用程序:
①定义类StuCard,用到类成员变量(人数)和实例成员变量:学号、姓名、性别、专业、年级、籍贯等
②初始化的时候用到构造方法,提供两个以上构造方法
③多个类(业务类StuCard和测试主类),用到包的概念,且分别放到不同的包中
④用到类成员访问权限,要求类成员变量为Public,实例成员变量为Private
⑤制作公有的set和get方法与外界通过消息调用的方式通信
⑥在主类中实现对业务类StuCard的读、写、修改属性等功能
(According to the following requirements, write a Java application: ① defined classes StuCard, use the class member variables (the number) and instance member variables: student number, name, gender, major, grade, place of origin, etc. ② constructor initializes when used, provide two or more constructors ③ multiple classes (business class StuCard and test the main class), the concept of package used,