mardi 19 mai 2015

Which one is good object-oriented design?

I made simple object-oriented prgram, and think about design.
I wonder which one of belows is recommended object-oriented design.

Most left side class is "Main" class. Black arrow means they are "Has a" relations. Blue arrows are inheritance. Red arrows mean it create pointed class as a object and call the method of it. Thanks.

enter image description here

enter image description here

Aucun commentaire:

Enregistrer un commentaire