student.class

寇和璧
2023-12-01

class Student
{
 String sno;
 String name;
 String adress;
 int age;
Student(){}
Student(String s,String n,String a ,int ag)
{  sno=s;
   name=n;
   adress=a;
   age=ag;
}
public void showMessage()
{
 System.out.println("学生:"+sno);
 System.out.println("xingming:"+name);
 System.out.println("dizhio:"+adress);
 System.out.println("minan:"+age);
}
}
 

 类似资料:

相关阅读

相关文章

相关问答