摘要: 问题:字段初始值设定项无法引用非静态字段、方法或属性的问题 在类中 变量赋值其他变量报错? public class TestClass{ public TestClass() { } public int a=1; public int b= a;//注意 此处会报错 字段初始值设定项无法引用非静 阅读全文
posted @ 2020-07-13 20:03 owl_code 阅读(841) 评论(0) 推荐(1) 编辑