Is it possible overriding the method to change its access modifier from the "package-private" to "protected"?
Explanation
Since the protected modifier imposes fewer restrictions than the default access modifier, such redefinition is allowed.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести