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:

    When a mother quarrels with a daughter, she has a double dose of unhappiness—hers from the conflict, and empathy with her daughter’s from the conflict with her. Throughout her life a mother retains this special need to maintain a good relationship with her daughter.
    Terri Apter (20th century)

    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)