static void Main(string[] args) { DashBorad db = new DashBorad("压力表"); //实例化 db.Reset(); db.Rotate(10.0); db.ShowValue(); DashBorad.Sum += 20; //类型引用 DashBorad.ResetSum(); Console.Read(); }
public bool Store(DashBorad db) { return(true); }