Programming, Swift, Object Oriented, Objective C.
number of functions our structure will occupy more memory. Most common solution is using special data structure Virtual Table to store pointers to functions. This approach is used by both Objective-C (dispatch table) and Swift (witness table). // Canvas.c typedef struct CanvasVTable { void