青鸟 IT 教育 103 班同学在 3 教室上崔老师的 Java 课」"/>
「南通青鸟 IT 教育 103 班同学在 3 教室上崔老师的 Java 课」
package dodoke;public class student{ String name; int age; String clazz; String room; String group; //小组 String address; //学生住址 String teacher; //教学老师 String course; //课程 // 类变量 static String school = "渡课IT(原名青鸟IT)"; static String schooladdress = "南通市崇川区跃龙南路182号数字大厦二楼"; static String schoolhistory = "12年"; void Classing() { System.out.println(this.teacher + "正在" + this.room + "给" + this.clazz + "上" + this.course); } String CourseTeacher() { return this.course + "由" + this.teacher + "负责"; } static String SchoolInfor() { return school + "位于" + schooladdress + "已经有" + schoolhistory + "的历史了"; } TeacherInformation techer (String gender,int teacherage, String teacheradrress) { return new TeacherInformation (gender, teacherage, teacheradrress); } public student() { } public student(String clazz, String room, String name, int age,String teacher,String course) { this.clazz = clazz; this.room = room; this.name = name; this.age = age; this.teacher = teacher; this.course = course; } }
package dodoke; public class TeacherInformation { String gender; int teacherage; String teacheradrress; void information() { System.out.println(this.teacherage + "岁以上的" + this.gender + "老师住在" + this.teacheradrress); } String information1(TeacherInformation TeacherInformation1) { return TeacherInformation1.teacherage + "岁以上的" + TeacherInformation1.gender + "老师住在" + TeacherInformation1.teacheradrress; } public TeacherInformation(String gender, int teacherage, String teacheradrress) { this.gender = gender; this.teacherage = teacherage; this.teacheradrress = teacheradrress; }
}
package dodoke;public class client {public static void main(String[] args) { student stu = new student("java103", "三教室", "tom", 25, "崔老师", "java基础"); stu.Classing();System.out.println(stu.CourseTeacher());}
}
更多推荐
「南通青鸟 IT 教育 103 班同学在 3 教室上崔老师的 Java 课」
发布评论