Android AL-Khatib
Android AL-Khatib

Reputation: 81

What is the difference between "Inherited constants" and "Inherited fields" in android documentation?

I'm confused between these two term in android documentation!! these screenshot about what i mean

Upvotes: 1

Views: 161

Answers (2)

egoldx
egoldx

Reputation: 1520

'Constants' are 'fields', that are usually set as "static final".

Upvotes: 0

Egor
Egor

Reputation: 40218

Constants are fields declared with static and final modifiers. Inherited constants would include all parent constants which are either public or protected, inherited fields would include all parent fields which are either public or protected.

Upvotes: 2

Related Questions