Replies: 1 comment 2 replies
-
If you need to initialize a class variable outside of a class, then it cannot be Why do you want to assign a class variable that is an instance of the class that contains it? That does not look like an advisable design pattern. I recommend looking at other approaches. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes it is required to initialize a class variable out side of a class, e.g.
But how to annotate that class variable to be final? Few options I have considered:
Any suggestions or discussions are welcome.
Beta Was this translation helpful? Give feedback.
All reactions