About 56 results
Open links in new tab
  1. When do you use 'self' in Python? - Stack Overflow

    Oct 18, 2016 · Are you supposed to use self when referencing a member function in Python (within the same module)? More generally, I was wondering when it is required to use self, not just for methods …

  2. ¿Cuál es la diferencia entre declarar una variable con self '''self ...

    Feb 25, 2016 · La diferencia principal es el alcance que tiene cada variable. Cuando declaramos una variable como : self.numero = 10 Indicamos que el alcance de esa variable es a nivel de Clase, por …

  3. What is the purpose of the `self` parameter? Why is it needed?

    For a language-agnostic consideration of the design decision, see What is the advantage of having this/self pointer mandatory explicit?. To close debugging questions where OP omitted a self …

  4. oop - Why do you need explicitly have the "self" argument in a Python ...

    But in some other languages, such as C#, you have a reference to the object that the method is bound to with the "this" keyword without declaring it as an argument in the method prototype. Was this an …

  5. oop - What do __init__ and self do in Python? - Stack Overflow

    Jul 8, 2017 · By convention, this argument is always named self. In the init method, self refers to the newly created object; in other class methods, it refers to the instance whose method was called. …

  6. Чем отличаются static, self и parent в php?

    Feb 18, 2016 · 11 self — класс в котором написано. static — класс в котором выполнилось. Например, если вызвать унаследованный метод в котором self / static, то каждый вариант даст …

  7. ¿Para qué sirve Self y This en PHP? - Stack Overflow en español

    Jan 10, 2018 · quería saber el uso de estos dos y sus diferencias. He visto que tienen un uso parecido, pero lo que he visto no explican realmente cuál es mejor usar y por qué.

  8. What is SELF JOIN and when would you use it? [duplicate]

    Jun 13, 2024 · You use a self join when a table references data in itself. E.g., an Employee table may have a SupervisorID column that points to the employee that is the boss of the current employee. To …

  9. php - When should I use 'self' over '$this'? - Stack Overflow

    self - This refers to the current class name. So self::baz () is the same as Foo::baz () within the Foo class (any method on it). parent - This refers to the parent of the current class. static - This refers to …

  10. Для чего в python нужен self? - Stack Overflow на русском

    Mar 22, 2020 · Ребят, кто может нормально объяснить для чего в языке python нужен self? Уже несколько статей перечитала и все никак не могу понять. Буду крайне благодарна...