I'm writing this C code in which inheritance is emulated by means of composition, and I'm unsure whether I should give each child struct
its separate .c and header files as is normally done in other OO languages, or if I'd be better off just keeping them in the same two files. Would it be on topic to ask if there is a "right" answer to this problem, provided an MRE illustrating how the inheritance is emulated?
↧
Are questions about the "right" way to organize your code within files on topic?
↧