Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

difference between this and super

this() is used to access one constructor from another with in the 
same class 
while super() is used to
access superclass constructor. Either this() or super() exists it must 
be the first statement in the
constructor.
 
PREVIOUS NEXT
Tagged: #difference #super
ADD COMMENT
Topic
Name
2+9 =