i am not able to understand this line please help me
A constructor has no type.
what does this mean (A constructor has no type) ?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
19 March 2019, 20:33
A constructor is always void. Void means it does return anything. When a method is not void, it returns something (like String, int, long, etc). What it returns is its type.
0