The material is assigned to the objects.
The material is assigned to all objects on the layer whose Material property is set to ByLayer. (ByLayer is the default for the Material property when you create an object.)
The material is removed from the object and replaced by the ByLayer material.