Why can we only expand the visibility of the access modifier of the overridden method?

  • 0
    This refers to cases similar to those of overriding the clone () method of the Cloneable interface.
    It seems to be not quite a beginner, but for some reason I cannot put together a final and well-formulated goal. I understand that here we are talking about polymorphism and the fact that when calling in an object whose class overrides such a method, the same overridden method is called by us, and not the parent's method. Please, dot the i's :)
    Java Iris Flores, Jun 5, 2020

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!