Re:So you're using a weird language
by scarface74 on Thursday October 06, 2022 @12:52PM
(#33110765)
Speaking of C the canonical way to do it was to create a struct with function pointers and initialize the struct as you would a class.
Even in C that lacks any form of sane abstraction capabilities, people have come up with object systems and what not if they fit a problem domain better. While I think that the language optimum is well past C, there is no significant difference between modern managed languages in any way besides ecosystems — and that is the most important thing.