What is the difference between class and instance methods?

后端 未结 18 2189
说谎
说谎 2020-11-21 11:55

What\'s the difference between a class method and an instance method?

Are instance methods the accessors (getters and setters) while class methods are pretty much ev

18条回答
  •  一生所求
    2020-11-21 12:40

    Also remember, the same idea applies to variables. You will come across terms like static, member, instance, class and so on when talking about variables the same as you would for methods/functions.

    It seems the common term in the Obj-C community is ivar for instance variable, but I am not an Obj-C guy, yet.

提交回复
热议问题