I executed this thought experiment 25 years ago. OOP can absolutely be simulated in C. It’s not nearly as convenient as using a language designed to support OOP, but if for any reason you cannot, or don’t want to, use C++, then simulating OOP is certainly an option. (I can imagine not wanting to use C++ because it’s such a large, complex, and unwieldy language. C is nice and light and nimble, and I would like to retain these qualities.)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store