Answer:
Wrapping the bar with a coil of wire that has an electric current.
Explanation:
To cause an iron bar to start generating a magnetic field, wrap the bar with a coil that has an electric current.
Wrapping the bar with a coil of wire that has electric current can cause an iron bar to start producing magnetic fields. This way, the iron bar becomes a magnet.