Infosys interview question

Different methods to copy an object.