0

What is the differance between super dot and super as a method?

super dot is using to access the pearant class or the super class element in sub class and super as method we give it the parameter of the father class constructor if it has and put it in the first line in the constructor of the sub class ,when we create obiect from sub it must creat an object from pearant at first

24th Dec 2016, 5:49 AM
aya ahmed
aya ahmed - avatar
1 Respuesta
+ 1
super.method(...) is a method of super class. super(...) is a constructor of super class applied to your class.
27th Dec 2016, 4:02 PM
Daniil Fomichev