So perhaps the Target class will have an explode instance method; thus, every target knows how to explode.
Вероятно, класс Target будет иметь метод экземпляра explode, и, таким образом, каждый объект цели знает, как надо взрываться.
Many Rubyists will think I am being verbose in saying "instance method crypt of class String" rather than saying "String#crypt," but I think no one will be confused.
Многие поклонники Ruby считают, что я проявляю излишнюю болтливость, когда пишу «метод экземпляра crypt класса String», а не просто string#crypt, но я полагаю, что так никто не запутается.
The PageFunction's Return event handler is required to be an instance method on the parent page object.
Обработчик события Return для PageFunction должен быть методом экземпляра для родительского объекта страницы.
A method that is not declared with the static modifier is called an instance method.
When an instance method declaration includes a virtual modifier, the method is said to be a virtual method.
See also instance method and class method.
Each instance method in the new class invokes the corresponding method on the contained instance of the existing class and returns the results.
Каждый экземпляр метода в новом классе вызывает соответствующий метод содержащегося здесь же экземпляра прежнего класса, а затем возвращает полученный результат.
A base class access is permitted only in a constructor, an instance method, or an instance property accessor.
The Entity constructor (which is like an instance method) initializes the new instance with the next available serial number.
A delegate can reference either a static method (such as Square or in the previous example) or an instance method (such as m.Multiply in the previous example).
Делегат может ссылаться как на статический метод (например, Square или в предыдущем примере), так и на метод экземпляра (например, m.Multiply в предыдущем примере).
Note that the SetNextSerialNo and GetNextSerialNo static methods are invoked on the class whereas the GetSerialNo instance method is invoked on instances of the class.
Обратите внимание, что статические методы SetNextSerialNo и GetNextSerialNo вызываются для класса, а метод экземпляра GetSerialNo - для экземпляра класса.
Alte rezultate
Instance methods can change the status of a class.
In the Java programming language, constructors are instance methods with the same name as their class.
В языке программирования Java имя конструктора совпадает с именем класса.