I wrote Java code and, absent-mindedly, typed at some point public void BaseStation() as a constructor for the BaseStation class. To my surprise, this did not cause an error during compilation, and the program was launched. Why is this? Is there a reason someone has a return type for the constructor?
nikos source share