package lianxi; public class Student {
String Name;
int XveHao,Age;
Student(String Name,int XveHao,int Age)
{
this.Name=Name;
this.XveHao=XveHao;
this.Age=Age;
}
void outPut()
{
System.out.println("姓名:"+this.Name+" 学号:"+this.XveHao+" 年龄:"+this.Age);
} public static void main(String[] args){
Student Student1=new Student("赵一",3002345,21);
Student1.outPut(); Student Student2=new Student("钱二",3002356,19);
Student2.outPut(); Student Student3=new Student("孙三",3002312,23);
Student3.outPut(); }
}