How do you implement a class in C?
That depends on the exact “object-oriented” feature-set you want to have. If you need stuff like overloading and/or virtual methods, you probably need to include function pointers in structures: This would let you implement a class, by “inheriting” the base class, and implementing a suitable function: This of course requires you to also implement a … Read more