Skip to content

Java-B-2018/lab8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lab8

继承与方法重写

lab目标

掌握类的继承与父类子类之间的方法重写

lab需求

  • 在github的lab仓库https://github.com/Java-B-2018/lab8中已经给出了你需要完成的工程。src文件夹下包含五个java类。
  • 你需要在Freshman类、Sophomore类、Junior类在有//your code here的地方填充你的代码,并对Student类做适当修改(添加一些必要的方法)。
  • 运行Test.java使其满足如下的打印输出:
  • 体现继承与方法重写的特性。
My name is Bob, 17 years old. I'm freshman.
My name is Alice, 18 years old. I'm sophomore.
My name is Jack, 19 years old.  I'm junior.

切记:你不能修改Test.java的任何内容!

DeadLine与上传

12月2日23:59之前将整个工程打包上传至ftp对应目录下。

About

继承与方法重写

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages