Hi everybody could somebody help me with this problem with lab-1027, my
Question is:
# Write an interface called MyOwnInterface, which has the following method
* AddressInterface getAddress();
---------------------------------------done
# The AddressInterface is a Java interface that has the following methods.
* int getStreetNumber();
* void setStreetNumber(int streetNumber);
* String getStreetName();
* void setStreetName(String streetName);
* String getCountry();
* void setCountry(String country);
---------------------------------------done
# Write AddressImpl class that implements AddressInterface
---------------------------------------done
# Make the Person class to implement MyOwnInterface.
AddressInterface getAddress(){
???????????????????????????????????????? how to implement this method,
grabbed from an interface MyOwnInterface which
must return something of AddressInterface type which is also an interface
}
# Initialize a Person object with proper data and display it.
Will realy apreciate it!
--
Impossible Is Nothing
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---