Static Classes & interfaces #9617
Answered
by
333fred
TonyValenti
asked this question in
Q&A
-
Why aren't static classes allowed to implement interfaces if all of the interface members are ``static abstract```? I was able to work around the issue by making my class abstract and making its constructor private. I'm just curious about the limitation. |
Beta Was this translation helpful? Give feedback.
Answered by
333fred
Aug 17, 2025
Replies: 2 comments 2 replies
-
No one has gotten a language proposal accepted that would change the current restriction that a static class cannot implement an interface. |
Beta Was this translation helpful? Give feedback.
0 replies
-
See #9123. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
333fred
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #9123.