C++ Things I’m Learning
These are things that I’m learning
2023-10-06
- On the
.hppside, you can define methods inside the class - However, on the
.cppside, 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.hppso it can be properly used by other classes, but then you should just add anotherutils.hppandutils.cppfile with general functions