Is the Person class supposed to implement the AddressInterface? If so, what is the point of the AddressImpl class?
On Feb 22, 3:13 pm, miga <[email protected]> wrote: > On Feb 22, 8:58 pm, [email protected] wrote:> Should the AddressImpl class > extend Person or vice versa? I am just > > confused how the AddressImpl class plays into the whole scheme of > > things. > > The whole homework is about implementation, not about extension. > Interfaces are abstract classes, hence they need to be implemented by > non abstract classes. Once they are implemented, you may use their > implementation as any other classes. > In the homework, you have two kinds of implementation: direct ones, > which you implement directly in Person class, and indirect one, such > as AddressInterface, which is implemented by AddressImpl class. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
