java_default方法

接口中有default方法, 那么所有的实现类中 不必实现default方法  以上例为例只需要实现 getSubject(); getSecret(); 方法就可以了

猜你喜欢

转载自blog.csdn.net/maqingbin8888/article/details/82757019
今日推荐