Hi Stephen Adjei,
-in person.java :
public class Person implements PersonInterface, MyOwnInterface{...}
create a new instance of AddressImpl() , for example "adr1" of
AddressInterface type and return it in a "public AddressInterface
getAddress()" method.
Then, write a constructor Person (String fName, String lName, AddressInterface
adr1) {...}
- in Main :
Create another instance of Person according to the parameters in Person
constructor created above, and display the information .
Hope you understand and it can help.
Bako
________________________________
From: Stephen Adjei <[email protected]>
To: [email protected]
Sent: Wednesday, April 15, 2009 5:04:14 AM
Subject: [java programming] mygetpersonmultipleinterfaces2
I cant get through the mygetpersonmultipleinterfaces2 assignment can someone
help me?
I just cant find a way of writing the getadress method which is assign to the
AddressInterface type.
please I need detailed explaination.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---