Practice free →
Home › Per Nystrom (Component pattern), a single GameOb…

Per Nystrom (Component pattern), a single GameObject often AGGREGATES many components for which reason?

AFavour composition over inheritance
BSpeed of OOP inheritance is too slow
CComponents are required by C++ standard
DTo avoid garbage collection
Answer & Solution
Correct answer: A. Favour composition over inheritance
Nystrom Ch. Component: behaviour is split into reusable components (Transform, Renderer, Collider, AI) instead of a deep class hierarchy.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions