Student.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace project
{
class Student
{
private string sno;//学号
private string sname;//姓名
private string ssex;//性别
private int sage;//年龄
public string Sno
{
get
{
return this.sno;
}
set
{
this.sno = value;
}
}
public string Sname
{
get
{
return this.sname;
}
set
{
this.sname = value;
}
}
public string Ssex
{
get
{
return this.ssex;
}
set
{
this.ssex = value;
}
}
public int Sage {
get
{
return this.sage;
}
set
{
this.sage = value;
}
}
public Student()
{
}
public Student(string sno, string sname, string ssex, int sage)
{
this.sno = sno;
this.sname = sname;
this.ssex = ssex;
this.sage = sage;
}
}
}
course.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace project
{
class Student
{
private string sno;//学号
private string sname;//姓名
private string ssex;//性别
private int sage;//年龄
public string Sno
{
get
{
return this.sno;
}
set
{
this.sno = value;
}
}
public string Sname
{
get
{
return this.sname;
}
set
{
this.sname = value;
}
}
public string Ssex
{
get
{
return this.ssex;
}
set
{
this.ssex = value;
}
}
public int Sage {
get
{
return this.sage;
}
set
{
this.sage = value;
}
}
public Student()
{
}
public Student(string sno, string sname, string ssex, int sage)
{
this.sno = sno;
this.sname = sname;
this.ssex = ssex;
this.sage = sage;
}
}
}
Form.cs
using System;
using