1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
@protocol SomeProtocol Props Method(const Contents& options = {}); @end @interface SomeClass Props Method1(const Contents& options = {}); @end @implementation SomeClass Props Method1(const Contents options = {}); @end void Method2(const Contents options = {}) { } void Method3(const Contents& options = { .text = 10 });