sometimes I can see the arguments in super,like this"super(i+1)",I do not know what this"i+1" mean. would you take an example for me to explain to me? thank you!
posted 12 years ago
As I mentioned in your other post, the 'super()' is a call to a constructor of the super class. If your call 'super()' contains no arguments, it will just call the default constructor of the super class, or go up the chain until it finds a default constructor. If it has arguments ( like (i + 1) ), then you know that the constructor of the super class requires some sort of arguments (int I'm guessing).
-nothing important to say, but learnin' plenty-