We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This comparison survey states: Enums do not support constructors. (Or rather, the constructor is private, so you cannot pass parameters to it.)
Enums do not support constructors. (Or rather, the constructor is private, so you cannot pass parameters to it.)
Official documentation disagrees: https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html Scroll down to public enum Planet, there is a constructor with parameters, which, naturally, can be overloaded.
public enum Planet
This is a huge oversight.
The text was updated successfully, but these errors were encountered:
Hm. Looks like I misread the other tutorial I was reading.
I have corrected it. Thanks.
Sorry, something went wrong.
You missed the Summary table.
No branches or pull requests
This comparison survey states:
Enums do not support constructors. (Or rather, the constructor is private, so you cannot pass parameters to it.)
Official documentation disagrees: https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html
Scroll down to
public enum Planet
, there is a constructor with parameters, which, naturally, can be overloaded.This is a huge oversight.
The text was updated successfully, but these errors were encountered: