hi , In Lab 1027 we are asked to
- Write an interface called MyOwnInterface, which has the following method - AddressInterface getAddress(); - 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); - Write AddressImpl class that implements AddressInterface - Make the Person class to implement MyOwnInterface. I am having problem with AddressInterface getAddress(); we have to write AddressInterface getAddress(); function which returns AddresInterface as object I am having problem with returning interfaces as objects. How to write the body of this function so that it returns AddressInterface object. Thanks and Regards, Abhisek shukla --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to javaprogrammingwithpassion@googlegroups.com To unsubscribe from this group, send email to javaprogrammingwithpassion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---