Re:OOP in C
by vidarh on Sunday January 08, 2023 @06:45AM
(#34298290)
Any struct. Only requirement would be that the first element can be casted to a point to a class object containing the vtable. I'ved edited to fix the casting so it actually compiles, and to use a void * in the argument list, as is what you'd actually usually do.
[ Parent
| on HN ]
There are no comments on this comment yet.