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:
“Those of us who are in this world to educateto care foryoung children have a special calling: a calling that has very little to do with the collection of expensive possessions but has a lot to do with the worth inside of heads and hearts. In fact, thats our domain: the heads and hearts of the next generation, the thoughts and feelings of the future.”
—Fred M. Rogers, U.S. writer and host of Mr. Rogers Neighborhood. That Which is Essential Is Invisible to the Eye, Young Children (July 1994)
“Science is feasible when the variables are few and can be enumerated; when their combinations are distinct and clear. We are tending toward the condition of science and aspiring to do it. The artist works out his own formulas; the interest of science lies in the art of making science.”
—Paul Valéry (18711945)