I have multiple shapes to draw such as rectangle, square, circle etc, and this number of shapes can increase to 20 or more than that. Do I have to create different classes for all these shapes and implement Shape. This method would give me lots of classes which I dont prefer.
Or there are some other design methods which will restrict building these many classes.
Aucun commentaire:
Enregistrer un commentaire