This is fragile. If there's another type of object that also has a password field, then it might set the password for the wrong object. To be safe, always specify the object for which you're setting the property.