In order to answer the question of what a “thing” is, you have to first determine what its defining characteristics are.
Other languages will refer to this as a “field”, a “member”, or even just a “variable”. However, in Objective-C the defining characteristics of an object are shown by its properties.
Other languages will refer to this as a “field”, a “member”, or even just a “variable”. However, in Objective-C the defining characteristics of an object are shown by its properties.
Describing the Object
On to the second critical question for every object — what exactly does the object do?
A programmatic description of what an object does is almost universally called a method. Think about the common actions of the vehicles in the photos above:
コメント
コメントを投稿