[Enhancement] Using Polymorphism to Simplify Object Storage in Canvas
#16
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Since all the objects inherit from
Shape
, we can use polymorphism to store all the objects in a singleshapes
list, instead of separating them intoshapes
andlines
.uml-editor/src/Components/Canvas.java
Lines 33 to 34 in 8815efb
The text was updated successfully, but these errors were encountered: