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:

    Mr. Christian, it is about time for many people to begin to come to the White House to discuss different phases of the coal strike. When anybody comes, if his special problem concerns the state, refer him to the governor of Pennsylvania. If his problem has a national phase, refer him to the United States Coal Commission. In no event bring him to me.
    Calvin Coolidge (1872–1933)

    The variables of quantification, ‘something,’ ‘nothing,’ ‘everything,’ range over our whole ontology, whatever it may be; and we are convicted of a particular ontological presupposition if, and only if, the alleged presuppositum has to be reckoned among the entities over which our variables range in order to render one of our affirmations true.
    Willard Van Orman Quine (b. 1908)