How would one write object-oriented code in C?

c++objectoop

What are some ways to write object-oriented code in C? Especially with regard to polymorphism.


See also this Stack Overflow question Object-orientation in C.

Best Solution

Yes. In fact Axel Schreiner provides his book "Object-oriented Programming in ANSI-C" for free which covers the subject quite thoroughly.