News for hackers. Stuff that matters.
Re:OOP in C by rramadass on Sunday January 08, 2023 @06:50AM (#34298321)
Easy; a subclass struct embeds the superclass struct as its first member.

Simple example here: https://embeddedgurus.com/state-space/2008/01/object-based-p...

Lots more here: https://stackoverflow.com/questions/351733/how-would-one-wri...

There are no comments on this comment yet.