D. Wrap an insulated wire around a metal with ferromagnetic properties and apply an electric current.
The magnetic field is turned off when an induced current is not present.
Thus, an electromagnet would act as a magnet only when a current is induced in an insulated wire that is wrapped around a material of ferromagnetic material such as iron core rotating in a magnetic field.