On Feb 22, 11:27 pm, [email protected] wrote:
> Is the Person class supposed to implement the AddressInterface? If so,
> what is the point of the AddressImpl class?
No, read again my previous answer. In AddressImpl write a method which
returns an instance of it with all the parameters you want. Then use
it in Person.
The point of AddressImpl is to give Person an access to the whole
address defined by AddressInterface.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---