[Reading Notes] iOS-dynamic type and dynamic binding, Reading Notes ios-
IDs are generic and can be used to store various types of objects. They are also called dynamic types ".
Dynamic type refers to the class actually used by the object that is determined during execution rather than during compilation.
Although the id type can define any type of object, do not abuse it. If you can determine the object data type, use the static type ", "Static type" checks errors during the compilation phase, rather than during the execution phase. Moreover, the "static type" program is readable.
Since the data type can be dynamic identification, can the method be dynamic identification? Yes, of course. This is "dynamic binding". It refers to finding the actual method to be called based on the "message" during execution.
Reference: iPhone and iPad development practices-Analysis of Typical iOS applications