Inline Variables
Let's take a look at how C++ deals with inline variable declaration.
With Non-Static Data Member Initialization introduced in C++11, you can now declare and initialize member variables in one place:
Get hands-on with 1400+ tech skills courses.