PLEASE ANSWERRRRRRRRR

How is an electromagnet different from a bar magnet?

A. Only an electromagnet attracts materials made of iron.

B. A bar magnet is a temporary and is only magnetic when a current flows through a wire wrapped around the core.

C. An electromagnet is temporary and is magnetic when a current flows through a wire wrapped around the core.

D. Only a bar magnet has a real magnetic field.