类与对象初识
初步掌握类的构造方法与方法调用
在github的lab仓库https://github.com/Java-B-2018/lab7/tree/master中已经给出了你需要完成的工程。src
文件夹下包含三个java类。你需要对Student
类与Teacher
类在有//your code here
的地方进行修改。运行Test.java
使其满足如下的打印输出:
My name is Bob. I'm 16 and my teacher is Mr.A.
My name is Alice. I'm 17 and my teacher is Mr.A.
My name is Jack. I'm 18 and my teacher is Mr.B.
切记:你不能修改
Test.java
的任何内容!
在11月18日23:59
之前将整个工程打包上传至ftp对应目录下。