Objective-C
Today I embarked on a new journey — iOS development.
To define a new class in Objective-C:
- inherit from NSObject
- In the header file, define all the instance attributes and methods (just function name, type of return value, name and type of the)
- In the implementation file, define the concrete body of instance methods.
- Attributes defined as @property have the shortcuts of getter and setter methods, as well as the dot notation.