Avoiding Conflicts Using Namespaces
Learn about the purpose of namespaces and how to use them.
Namespaces
Previously, we learned how to download a package, but soon we’ll be dealing with another problem. We must make sure that all the names are unique when naming things in our code. If not, the program won’t run. This can be tricky, especially when using packages that others have written. How do we know that the names we’re using are not already being used? The solution is in namespaces.
Get hands-on with 1400+ tech skills courses.