Objective-C

Plain Old Objective-C Class – III

Methods in Objective-C support named parameters. You can specify the name of the parameter and assign value to it while invoking the method. Let’s discuss this with a class Calculator that has a method add with three parameters num1, num2 […]

Plain Old Objective-C class – II

In the earlier post we had a simple Car class with model and year variables. The Car interface had the declarations for model and year properties and the implementation had the setter/getter methods for these. It’s pretty frustrating to hand-toss […]

Plain Old Objective-C class

Let’s create a simple class Car with model and year properties and getter/setter methods in Objective-C. In Objective-C the class implementation is split into two parts, the interface definition and the implementation. The interface is defined in a .h file […]