15 lines
279 B
Java
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);
|
||
|
}
|
||
|
}
|