Copy properties from one object to another.