CoreJava/exp8/Student.java

15 lines
279 B
Java
Raw Permalink Normal View History

2024-05-09 09:10:51 +08:00
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);
}
}