0

When I have multiple colors, strings and drawables that are constantly reused throughout the whole application, what is the term for this to describe it?

Is this called inheritance?

KTOV
  • 559
  • 3
  • 14
  • 39
  • Are you referring to java string pool? http://stackoverflow.com/questions/2486191/what-is-the-java-string-pool-and-how-is-s-different-from-new-strings – Omid Dec 12 '16 at 22:34

1 Answers1

1

These would be called

constants

Since their value is unchanging. These would typically be public static final fields.

Inheritance is completely different, and you can read more here

Steven Waterman
  • 611
  • 4
  • 17
  • So are they nothing to do with object orientation considering they're reused? – KTOV Dec 12 '16 at 21:58
  • I'm not sure I understand what you mean with regards to why reuse would make them related to object orientation. Constants certainly aren't only used in object-orientated languages - you'll find them used in almost all languages – Steven Waterman Dec 12 '16 at 22:00