第10天
练习 1:
实现了 OldPhone、MobilePhone、SmartPhone、PhoneLauncher 类 - 代码完整
在类 MobilePhone 中添加了 recordNumbers() 方法
练习 2:
用于国际呼叫的 SmartPhone 类中的 Call() 方法覆盖 - 代码完成
练习 3:
所有构造函数都修改为能够从 SmartPhone 类调用 getBrand() 方法 - 代码完成
练习 4:
4.1:如果playGame()设置为private,子类SmartPhone不能访问该方法。 要使其再次工作,需要在 SmartPhone 类中编写 playGame() 方法。 作为注释,@Override 在原始方法设置为私有时不适用
4.2: RestrictedSmartPhone 类实现覆盖 playGame() 方法并将其设置为私有是不可