Java View all facts Glossary Help |
| syntactic unit > access unit > constructor |
| constructor comparison table | |||
| Subject | define | have | has definition |
|---|---|---|---|
| constructor with no parameters | if you define a constructor with parameters and you create instances using a constructor with no arguments | the same name as its class | |
| default constructor | no parameters | A constructor that is automatically provided by the runtime system for any class that contains no explicit constructors |
Next access unit: interface Up: access unit Previous access unit: class