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.

Required fields*

3
  • You might instead have fuelRod.rotateBy(new Radians(0.5)), which is also using polymorphism. It does require a robust units library to be nice tho. Commented Dec 24, 2024 at 13:34
  • Maybe int status = fuelRod.rotate(new Radians(0.5));. (Your answer turned into a rant midway. I feel you, though.) Commented Dec 24, 2024 at 13:59
  • Heh, yeah, like I said, there’s more than one way to avoid passing them. Commented Dec 24, 2024 at 15:21