Why do we have to write public static when there is an operator? #7014
Unanswered
zms9110750
asked this question in
Q&A
Replies: 1 comment
-
What if we added instance operators. Then you'd need a way to state that and that would involve a new keyword. So better to just use the keyword we do have. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The compiler knows that if there is an operator, there must be public static. But if he knows, why should we write it again?
Beta Was this translation helpful? Give feedback.
All reactions