In C# I can add getters anIntVariable = someMethod1() + someMethod2()... but in Objective-C, I a get a warning, “Implicit Declaration of function ‘someMethod1’is invalid in c99. What is the equivalent way to do arithmetic with methods? Thanks.
In C# I can add getters anIntVariable = someMethod1() + someMethod2()… but in Objective-C,
Share
You can do this in Objective C.
Where method1 & method2 might be implemented like: