摘要: public class Variable{ static int a=123; //static 类变量 int b=456; //实例变量 public void method(){ int i=2; //局部变量 } } 类变量 static 从属于类,随着类的创建而存在 类变量也叫静态变量 阅读全文
posted @ 2021-02-10 18:25 十九- 阅读(44) 评论(0) 推荐(0)