Age of Learning Interview Question

Do you use namespaces?

Interview Answer

Anonymous

May 3, 2017

Using namespaces is important when building robust applications or creating applications that rely on 3rd party packages. Using namespaces prevents class name collisions. Think of it like this; namespace "Tom" can have "Jerry" class, namespace "Jorge" can have "Jerry" class. Since they use different namespaces, both "Jerry" classes can co-exist in the same application.