What type of relationship is created in this analogy?

dog is to mammal as snake is to reptile
A.
part to whole
B.
synonyms
C.
object to category
D.
opposites