为什么Java指定覆盖方法的访问说明符可以允许比重写方法更多但不是更少的访问?例如,超类中的受保护实例方法可以在子类中公开,但不是私有的.
java inheritance access-modifiers
access-modifiers ×1
inheritance ×1
java ×1