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) ?
You must be signed in to leave a comment
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.