Namespaces compared to Inheritance?

I am a bit confused about when to use Namespaces and when to use Inheritance.

Since our PlayerController always requires the use of Mover, why aren’t we declaring PlayerController as PlayerController : Mover and call from the base class instead of GetComponent() ?

Something like EnemyController could also be EnemyController : Mover?

I assume it has something to do with the overall structure of the codebase?
Is inheritence not as flexible as namespaces?

Thanks, really enjoying the course so far. (Currently on Lecture 3-6)

-Geoff

Give this a read though and see if it helps at all.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.