difference between a bar magnet and an electro magnet
Bar magnets are permanent magnets and will never looses their magnetism. They are always switched on. The orientation of the poles remains fixed.
Electromagnets are temporary magnets and work only when an electric current is passing through it. The orientation of the poles depends upon the direction of the current.