have an issue with designing in the class in proper manner
-
29-10-2019 - |
Question
What’s the issue with the following, and how would I implement it better using OO principles?
My app contains a bunch of shape classes which all inherit from Shape
- Circle
, Rectangle
, Triangle
, etc. Some of these need to be displayed on the screen, in which case they need to leverage common screen logic, so there's a ScreenShape
superclass which contains the common logic, and ScreenCircle
, ScreenTriangle
child classes.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow