By mswatcher
via infragistics.com
Submitted: Nov 26 2012 / 10:42
Interfaces do exist in Objective-C, they just aren’t called interfaces. In fact, if you read my last post on Classes, you probably noticed that in the header file a class was defined as: @interface MyClass : NSObject @end Hmm… if I was coming directly from C# and knew nothing about Obj-C, i’d assume thats the same as .Net interface. So whats going on above? And whats the equivalent of a C# interface in obj-c? When you look at the above statement, and you look at it in relationship to the second part of a class declaration, it actually makes a lot of sense.
Add your comment