What if I wanted a constructor that would take arguments to define its internals, but sometimes I didn't want to define the internals such as in a header.
Now that works as I had hoped to set all the varables in one statement, but in a class declaration I really don't want to set the variables until its constructor definition.Code:
Vector3(float x, float y, float z);
float X, Y, Z;
I was told a long time ago to only declare in a .h and only define in .cpp so when doing something like.
I know I'm missing something simple. Thanks for your time!Code:
Vector3 Location; // trying to not define here but my above example requires it
Camera(Vector3 location); // or here