String Constants

Learn the drawbacks of using string literals, and how string constants help address those issues

In the example application, we discussed the idea of using string constants. To better illustrate the reasoning behind this approach, let’s consider the problems that using strings for type can cause in a large code base:

Get hands-on with 1200+ tech skills courses.