Any other method or. Use our instance method to update the non-public variables. Parse()来调用,而不是作为Date的实例方法 。 Parse() rather than as a method of a Date instance . 首先是Animal,它包含一个实例方法 和一个静态方法:. The first is Animal, which contains one instance method and one class method: . Unlike instance methods , subscripts can be read-write or read-only.
Cat类覆盖Animal中的实例方法 ,并隐藏Animal中的静态方法。 The Catclass overrides the instance method in Animaland hides the class method in Animal.An instance method can be called only on a specific instance of the type it belongs to.你使用或编写的每个类都继承了Object类中的实例方法 。 Every class you use or write inherits the instance methods of Object. 默认情况下,值类型的属性不能从它的内部实例方法 修改。 By default, the properties of a value type cannot be modified from within its instance methods . 我们说该方法是一个实例方法 ,因为它需要一个实例来调用。 We say that the method is an instance method because it needs an instance to be called. 与实例方法 不同的是,下标可以是读写也可以是只读的。 Unlike instance methods , subscripts can be read-write or read-only. 向类发送消息时,您指定的方法必须定义为类方法,而非实例方法 。 When messaging a class, the method you specify must be defined as a class method instead of an instance method . 声明由一个减号(-)开始,这表明这是一个实例方法 。 The method declaration starts with a-(minus), this indicates an instance method . 在Objective-C中,有两种类型的方法,分别是实例方法 与类方法。 In Objective-C, there are two types of methods- class methods and instance methods. . 类型方法如上所述,实例方法 是由一个特定类型的实例调用的方法。 Instance methods, as described above, are methods that are called on an instance of a particular type.一个对象的内容合并到jQuery的原型,以提供新的jQuery实例方法 。 Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods . 这可能是一个独立的函数,或者可能是引用对象实例方法 的closure方法。 This could be a free-standing function, or it could be a method closure referencing a method of an object instance . 初始化器现在能够访问self并且可以修改它的属性,调用它的实例方法 等等;. Initializers are now able to access self and can modify its properties, call its instance methods , and so on. 例如,超类中的受保护的实例方法 可以在子类中公开,但不是私有的。 For example, a protected instance method in the superclass can be made public, but not private, in the subclass. 若一个实例方法 的声明中含有virtual修饰符,则称该方法为虚拟方法。 When an instance method declaration includes a virtual modifier, that method is said to be a virtual method. .
展示更多例子
结果: 559 ,
时间: 0.0192
English
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt