Species A and C are more closely related as they are both endothermic and give birth to amniotic eggs, with A having feathers and C having fur. Species B is more distantly related as it is ectothermic but has wings like A. Species D is the most distantly related as it is ectothermic and has scales rather than feathers or fur.