Which is not a component of an electromagnet?
A. solenoid
B. power source
C. ferromagnetic core
D. permanent magnet