Copper oxide in presence of acetic acid and salt forms sodium acetate leaving particles of copper floating in the solution. When iron nails are dipped in it, they get copper plated because iron being more reactive attracts copper towards itself ( displacement reaction) iron + copper acetate→copper + iron acetate