The constant cannot be marked static

后端 未结 5 515
庸人自扰
庸人自扰 2020-12-07 12:52

I am trying to declare a PI constant like this:

public static const double PI = Math.PI;

but why am I getting this error?

T         


        
5条回答
提交回复
热议问题