What is self?

Self is merely a conventional name for the first argument of a method. A method defined as meth(self, a, b, c) should be called as x.meth(a, b, c) for some instance x of the class in which the definition occurs; the called method will think it is called as meth(x, a, b, c).

Author: on September 22, 2010
Category: .Net
  • Recently in .Net:

  • Recent questions

    Copy Protected by Send free sms - Love2sms.