Java一些简单程序的练习
文章平均质量分 75
Magic_elf超越自己
The profoundest thought or passion sleeps as in a mine until an equal mind and
heart finds and publishes
it. --Ralph Waldo Emerson
展开
-
实验三 继承,上转型对象 之Example.java
(一)Example.java class People{ protected double weight,height; public void speakHello( ) { System.out.println("yayawawa"); } public void averageHeight() {原创 2013-04-10 22:13:50 · 972 阅读 · 0 评论 -
实验三 继承,上转型对象 之 HardWork.java
(二)HardWork.javaabstract class Employee{ public abstract double earnings( );}class YearWorker extends Employee{public double earnings() {return 1200000.00;}}class MonthWorker原创 2013-04-10 22:19:48 · 1960 阅读 · 3 评论