Which of the following is the best definition of an analogy?

a. comparing synonyms and antonyms
b. organizing words by classification
c. identifying differences in words
d. showing a similarity between two unlike things

d. showing a similarity between two unlike things