...类别的类别方法(Class Methods Class Methods)) ••物件的实例方法( 物件的实例方法(Instance Methods Instance Methods)) 在本章说明的是类别方法,相当于是其他 在本章说明的是类别方法,相当于是其他 程式语言的程序和函数。
基于4个网页-相关网页
The static methods in the Factory class will then call the instance methods of your factory instance.
然后, Factory类中的静态方法会调用您工厂实例的实例方法。
Static methods can only access instance methods or instance data after an instance of the class is created. That is, after an object has been created.
静态方法只能在实际对象被创建后使用实际变量和实际方法。
So inside of an instance, associated with an instance, we have both methods and fields.
还有一些内部变量,实际上我该这么说,我们通常把这些东西称为域。
I think of data hiding as basically saying, one can only access instance values, or, we'll call them that, instance values through defined methods.
一个人仅仅可以访问实例变量,或者,我们可以这么来说,通过定义好的方法,来访问实例的变量。
应用推荐