「南通青鸟 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());
	          

	          
}
}



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值