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 experience and behaviour that gets labelled schizophrenic is a special strategy that a person invents in order to live in an unlivable situation.”
—R.D. (Ronald David)
“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)