摘要:
Illegal modifier for the method name; only public, protected, private, abstract, static, final, synchronized, native & strictfp are permitted 方法名称的非法修 阅读全文
摘要:
一、重写 子类继承父类,通过重写父类的方法,实现与父类不一样的方法体。 子类中方法使用的修饰符权限一定要大于父类中的修饰符权限。 Cannot reduce the visibility of the inherited method from OverrideA 译:无法降低OverrideA中继 阅读全文
摘要:
一、final final修饰类,类不可被继承。 The type FinalB cannot subclass the final class FinalA 译:FinalB类型不能将最终类FinalA子类化 final修饰变量,变量必须被初始化,且初始化后,变量不可被修改。 从下面的例子可以得知 阅读全文