Steve
~ Mansukh
Meg Berg wrote:Eclipse has line 54 underlined in red and is stating the following:
+change method 'setId(CustomerId)' to 'setId(int)'
+change type of 'id' to 'CustomerId'
+create method 'setId(int) in type 'Customer'
Line 58 has the following suggestions:
+change method 'setMailingAddress(Address)' to 'setMailingAddress(String)'
+create method 'setMailingAddress(String) in 'Customer'
Meg Berg wrote:... An id is given (as an int), ...My problem is that I don't know how to set that data when my customer class references other objects in other classes (id from CustomerId or mailingAddress from Address). ... id and mailingAddress are objects in the customer class, and I don't know how to reference them so that the id (an int) I am dealing with can be cast into an object
Steve
Steve
Steve
I'm not sure if I approve of this interruption. But this tiny ad checks out:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|