Why not extending from Enum>

前端 未结 5 637
无人及你
无人及你 2021-01-19 06:36

I stumbled over the following problem that i can\'t extend and implement from this class which is defined in Java 1.5 (java.lang package)

public abstract cla         


        
5条回答
  •  无人共我
    2021-01-19 07:04

    For example,if you implement it explicitly, you don't have to init the property of "name" and "ordinal" in your constructor. It may cause NPE later.

提交回复
热议问题