In c++ are you allowed to split the definition of classes defined in the same header file across multiple source files? For instance if I have a file that defines the classes Quad2 and Quad3, can I define class Quad2 in a file called Quad2.cpp and Quad 3 in a file called Quad3.cpp but still have both in the same header file Quad.h?
Would this be considered illegal?