android文档中“Inherited constants”和“Inherited fields”有什么区别?

问题描述 投票:1回答:2

我在android文档中这两个术语感到困惑!! these screenshot about what i mean

java android field constants
2个回答
2
投票

常量是使用staticfinal修饰符声明的字段。继承的常量将包括publicprotected的所有父常量,继承的字段将包括publicprotected的所有父字段。


0
投票

'常数'是'字段',通常设置为“静态最终”。

© www.soinside.com 2019 - 2024. All rights reserved.