文件名称:student
介绍说明--下载内容均来自于网络,请自行研究使用
.编写一个控制台应用程序,程序中有两个类定义,一个是创建程序时系统自动创建的类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