Emulating OOP in C
Lesson overview
Topics covered: function pointers, structs with function pointers, virtual methods.
Emulating OOP in C
C doesn't have classes, but we can emulate OOP using:
Structs with function pointers: passing functions as data
Virtual method table: array of function pointers for polymorphism
Example: creating a "class" with inheritance-like behavior
Article author: Arthur Isaev