aspose file tools*
The moose likes Beginning Java and the fly likes  about the super Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " about the super" Watch " about the super" New topic
Author

about the super

lang lang
Greenhorn

Joined: Nov 01, 2003
Posts: 8
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!
David Crossett
Ranch Hand

Joined: Feb 05, 2003
Posts: 102
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).


David Crossett
-nothing important to say, but learnin' plenty-
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about the super