我正在开发程序/游戏,其中我有带参数的静态实用程序类。classParamsGeneral{publicstaticfinalintH_FACTOR=100;publicstaticintMAX_SCORE=1000;...}然后我需要在某些特定情况下覆盖此值,例如在分数有限的map上玩游戏。所以我做了以下操作:classParamsLimitedextendsParamsGeneral{publicstaticintMAX_SCORE=500;//otherparamsstaysame}预期用途如下:classPlayer{ParamsGeneralpar;publicPlayer(