public class student{
private stuno;
private clano;
private stuage;
private stusex;
public getstuno(string no)
{
get{
return stuno
}
set{
stuno=no
}
}
public getclano(string no)
{
get{
ruturn clano
}
set{
clano=no
}
}
public getstusex(string sex)
{
get{
ruturn stusex
}
set{
stusex=sex
}
}
student zhangsan = new student();
student lisi = new student();
大概是这样了 有问题你修改修改
最后两句放某类里
支持一下感觉挺不错的