Tony Docherty wrote:
The cloning is in the test which i posted, here it is again.
Can you post the whole of the test code you have been given, I want to see how the test code creates a clone because the methods you have been told to implement do not include any sensible way of cloning/copying an object.
Heres what im working with now, im using the print to see if the method is calling correctly, which it is. But cloneName itself isnt capitalized which is where im stumped.
I suspect your toUpperCase() method should change each of the individual values in the object to uppercase and then return the concatenated values.