Java: static abstract (again) - best practice how to work around

后端 未结 9 1115
误落风尘
误落风尘 2021-02-01 16:30

I theoretically understand the point why there is no abstract static in Java, as explained for instance in Why can't static methods be abstract in

9条回答
  •  花落未央
    2021-02-01 17:11

    I basically had the exact same problem.

    You may want to look at the solutions suggested to me in my question

    I liked Bozho's idea, but according to himself it was a bad idea. :) I suppose better programmers can explain why it is so. Ralph's and Jon Skeet's solution also works.

提交回复
热议问题