Suppose i have a class constructor which takes an object containing some of its class properties, and a method to assign these properties in the same way.
cla