In which of the following device the generated emf and armature current are in the opposite directions?

In which of the following device the generated emf and armature current are in the opposite directions?

A. dc generator
B. dc motor
C. transformer
D. all of the above