Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 2
    OP is talking about "method hiding", not overriding. Commented Sep 29, 2015 at 9:12
  • 1
    As tim mentioned below, If you want to hide the print() method, then you can make the method with private access. Commented Sep 29, 2015 at 9:17
  • 1
    You don't to explain that to me, instead you should add this to your answer so OP can read that. Also don't forget to credit Tims answer if you use parts of his answer in your edit. Commented Sep 29, 2015 at 9:19
  • Now after the update of the question. My answer is good to go :) Commented Sep 29, 2015 at 9:30
  • Yes, because someone changed "hiding" to "override" and badly some reviewers don't care about reviewing correctly :(. Commented Sep 29, 2015 at 9:44