代码修改如下: //程序猿都爱打球public class WorkerLikeBall extends BaseWorker{ protected abstract void playBall();} 这样,就只需要继承BaseWorker拿到起床时间和上班....