//南通青鸟 IT 教育 96 班同学在 3 教室上陆老师的 Java 课
public class Study {
String card;
String name;
String clazz;
String teacher;
String c_name;
public Study(String card, String name, String clazz, String teacher, String c_name) {
this.card = card;
this.name = name;
this.clazz = clazz;
this.teacher = teacher;
this.c_name = c_name;
}
void listen () {
System.out.println(this.card+ this.name+"在"+ this.clazz+"上"+this.teacher+"的"+ this.c_name+"课");
}
public static void main(String[] args) {
Study p = new Study ("南通青鸟 IT 教育","96 班同学","3 教室","陆老师","Java");
p.listen();
}
}
public class Study {
String card;
String name;
String clazz;
String teacher;
String c_name;
public Study(String card, String name, String clazz, String teacher, String c_name) {
this.card = card;
this.name = name;
this.clazz = clazz;
this.teacher = teacher;
this.c_name = c_name;
}
void listen () {
System.out.println(this.card+ this.name+"在"+ this.clazz+"上"+this.teacher+"的"+ this.c_name+"课");
}
public static void main(String[] args) {
Study p = new Study ("南通青鸟 IT 教育","96 班同学","3 教室","陆老师","Java");
p.listen();
}
}