文件名称:student
-
所属分类:
- 标签属性:
- 上传时间:2016-04-24
-
文件大小:596byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
.编写一个控制台应用程序,程序中有两个类定义,一个是创建程序时系统自动创建的类Class1,一个是用户自定义的Student类,要求该类包含私有字段:学号(字符串)、姓名(字符串)和性别(字符),具有三个属性:学号(读写)、姓名(只读)、性别(读写),具有有参构造方法、具有同时显示学生个人信息的方法。在Class1类的Main方法中完成以下功能:
1)从键盘上输入一个学生的个人信息(学号、姓名、性别)。
2)修改该学生的学号和性别。
3)打印修改前后该学生的个人信息。-Write a console application program has defined two classes, one class Class1 When you create the system automatically creates a user-defined class of Student requirements class contains private fields: school (string) , name (string) and gender (character), has three attributes: school (reading and writing), name (read-only), gender (read and write), there have arg constructor, with simultaneous display of students' personal information method . Complete the following functions in the Main method of Class1 class: 1) Enter a student' s personal information (student number, name, sex) the keyboard. 2) modify the student' s student number and gender. 3) the student' s personal information before and after the print changes.
1)从键盘上输入一个学生的个人信息(学号、姓名、性别)。
2)修改该学生的学号和性别。
3)打印修改前后该学生的个人信息。-Write a console application program has defined two classes, one class Class1 When you create the system automatically creates a user-defined class of Student requirements class contains private fields: school (string) , name (string) and gender (character), has three attributes: school (reading and writing), name (read-only), gender (read and write), there have arg constructor, with simultaneous display of students' personal information method . Complete the following functions in the Main method of Class1 class: 1) Enter a student' s personal information (student number, name, sex) the keyboard. 2) modify the student' s student number and gender. 3) the student' s personal information before and after the print changes.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
student.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.