Game engine design choice [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year . I heard composition is preferable over inheritance. So when I design my simple game engine I tend to do the following: http://yuml.me/1252399d instead of: http://yuml.me/51cacb4f Is this a good approach, or should I reconsider? Edit: To clarify the notation. The arrows means inheritance, the arrows