Preventing Multiple Class Definitions
Something that can happen in larger projects is that a header file for a class is included in multiple files. While this seems trivial, some compilers can run into a problem of thinking it’s multiple classes with the same name. Luckily, C++ gives us a method to prevent this from happening, by using a built…