Answer: Symbol.
A writer uses an object as a symbol to represent another thing more abstract; it can be any image that stands for something else. It's an implied analogy, and one of the most basic of literary techniques. Also, sometimes even an action or word spoken by someone can have a symbolic value, for example a smile is a symbol of friendship.