sealed class PI
{
public static float number;
static PI()
{ number = 3.141592653F; }
static public float val()
{ return number; }
}
What's the difference between public static and static public? Can they be used in any order?
How would I use static public float val()
?
Does it get executed as soon as the class is initialized?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…