Exercise Exercise Exercise
Please note that by the definition of a class code refers to himself with this variable.
An object type attribute has value until it receives a null value. Write the attribute setter
partner of class Person.
must ensure that a person is your partner. In this case we must raise an IllegalArgumentException ().
It should be added in the setter method invocation setPartner parameter.
What problem might occur?
0 comments:
Post a Comment