what does an electromagnet have that a bar magnet does not ?
The bar magnet and the electromagnet act identical. The difference being a electromagnet is a coil of wire that has a power source connect to both ends, this energizes the coil with an electromagnetic field.