I believe the correct answer would be that an electromagnet is temporary and is magnetic when a current flows through a wire wrapped around the core. An electromagnet is made from coils of wires that is magnetized when current is passed through the wires. Bar magnets are permanent magnets.