Special Variables
current object | current object's parent object | null reference | Current Context of Execution | |
---|---|---|---|---|
Smalltalk | self | super | nil | thisContext |
ABAP Objects | me | super | initial | |
C++ (STL) | *this | NULL, nullptr | ||
C# | this | base | null | |
Java | super | |||
D | ||||
JavaScript | null, undefined |
|||
Objective-C | self | super | nil | |
Python | self | super(current_class_name, self) super (3.x only) |
None | |
Visual Basic .NET | Me | MyBase | Nothing | |
Eiffel | Current | Precursor «{superclass}» «(args)» | Void | |
PHP | $this | parent | NULL | |
Perl | $self | $self->SUPER | undef | |
Perl 6 | self | SUPER | Nil | |
Ruby | self | super«(args)» | nil | binding |
Windows PowerShell | $this | $NULL | ||
OCaml | self | super | ||
F# | this | base | null |
Read more about this topic: Comparison Of Programming Languages (object-oriented Programming)
Famous quotes containing the words special and/or variables:
“The books may say that nine-month-olds crawl, say their first words, and are afraid of strangers. Your exuberantly concrete and special nine-month-old hasnt read them. She may be walking already, not saying a word and smiling gleefully at every stranger she sees. . . . You can support her best by helping her learn what shes trying to learn, not what the books say a typical child ought to be learning.”
—Amy Laura Dombro (20th century)
“The variables of quantification, something, nothing, everything, range over our whole ontology, whatever it may be; and we are convicted of a particular ontological presupposition if, and only if, the alleged presuppositum has to be reckoned among the entities over which our variables range in order to render one of our affirmations true.”
—Willard Van Orman Quine (b. 1908)