Hi,

Person should not extend AddresImpl (just like you put in your piece of
code) because a Person 'is not' an AddresImpl. So, a Person should not
inherit an AddressImpl.

To do this exercise, you should copy the MyPersonMultipleInterfaces project
and modify it.
A Person has an Address. So my recommendation would be to add an
AddressInterface attribute to the Person class, like the following:

public class Person implements PersonInterface,
                               AnotherInterfaceExample,MyOwnInterface{

    AddressInterface address;

...

The exercise also requests you to implement 'MyOwnInterface', that's why you
can see it in the code I've pasted.

Hope it helps.
Thanks.

On Mon, Mar 23, 2009 at 2:17 AM, passion learner <
[email protected]> wrote:

>
> Hi, I think you can inherit (extends) AddressImpl. This is because you
> are allowed to inherit only 1 superclass but to implement many
> classes. Just depends how you can achieve to solve the question.
>
> Please note that the homework requests you to implement
> "MyOwnInterface".
>
> Good luck!
>
> -----
>
> On Mar 18, 9:10 am, el mio uno y dos <[email protected]> wrote:
> > Hello, i have problem with exercise 1027. My questios is, can i do this o
> exercise requiere another way?
> >
> > public class Person extend AddresImpl{
> >
> > ......
> >
> > .....
> >
> > ......
> >
> > Thank you for every person trying to help me.
> >
> > _________________________________________________________________
> > ¿Quieres ver los mejores videos de MSN? Enciende Messenger TVhttp://
> messengertv.msn.com/mkt/es-es/default.htm
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to