ow are similes and metaphors alike?

AThey both use “like” or “as” to compare wordsincorrect answer
BThey are both types of poemsincorrect answer
CThey both compare one idea to anotherincorrect answer
DThey are both examples of literal language

CThey both compare one idea to another