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:
“Fashions change, and with the new psychoanalytical perspective of the postwar period [WWII], child rearing became enshrined as the special responsibility of mothers ... any shortcoming in adult life was now seen as rooted in the failure of mothering during childhood.”
—Sylvia Ann Hewitt (20th century)
“The variables are surprisingly few.... One can whip or be whipped; one can eat excrement or quaff urine; mouth and private part can be meet in this or that commerce. After which there is the gray of morning and the sour knowledge that things have remained fairly generally the same since man first met goat and woman.”
—George Steiner (b. 1929)