Programming, Swift, Object Oriented, Objective C.
tables and for base and inherited structure. We need to replace pointer to a function with pointer to a virtual table. typedef struct Canvas { int width; int height; const CanvasVTable *vtable; } Canvas; CanvasRef DisplayCanvasCreate(void) { // ... canvas->super.vtable = (CanvasVTable *)