Comparison of Programming Languages (object-oriented Programming) - Special Variables

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:

    He’s leaving Germany by special request of the Nazi government. First he sends a dispatch about Danzig and how 10,000 German tourists are pouring into the city every day with butterfly nets in their hands and submachine guns in their knapsacks. They warn him right then. What does he do next? Goes to a reception at von Ribbentropf’s and keeps yelling for gefilte fish!
    Billy Wilder (b. 1906)

    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 (1871–1945)