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:
“Jack: A politician, huh?
Editor: Oh, county treasurer or something like that.
Jack: Whats so special about him?
Editor: They say hes an honest man.”
—Robert Rossen (19081966)
“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)