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.

6
  • Cannot make it private since it overrides a public method from its base class. Commented Jan 10, 2023 at 18:01
  • base class has the same issue, rate doesnt need to be public Commented Jan 10, 2023 at 18:31
  • AbstractItem.getRate() cannot be private since it gets overridden Commented Jan 10, 2023 at 18:35
  • dont override it Commented Jan 10, 2023 at 20:23
  • I have to, since its behavior depends on many subclasses! Commented Jan 11, 2023 at 9:21