a. 错误,const 不能被修饰为 static
b. 因为定义为常量(const)后就是静态的(static)
public static const;int A= 1;这段代码有错误么?
最新推荐文章于 2024-03-14 16:48:15 发布
本文探讨了在编程中const和static修饰符的区别。指出const修饰符不能与static同时使用,因为定义为常量(const)后就已经具备了静态(static)特性。
3995

被折叠的 条评论
为什么被折叠?



