CoreJava/exp8/Student.java
2024-05-09 09:10:51 +08:00

15 lines
279 B
Java

package exp8;
class Student{
String name;
String calssName;
public Student(String name, String className){
this.name = name;
this.calssName = className;
}
public void show(){
System.out.println(this.name+","+this.calssName);
}
}