C++ Things I’m Learning
These are things that I’m learning
2023-10-06
- On the
.hpp
side, you can define methods inside the class - However, on the
.cpp
side, you must add aClass::method
. If you don’t put the class in front of it, the function will still exist, but it won’t be scoped properly, so you won’t be able to access the class methods and fields. Also, the function should be added in the.hpp
so it can be properly used by other classes, but then you should just add anotherutils.hpp
andutils.cpp
file with general functions