On Mar 18, 6:22 pm, Rafał Laczek <[email protected]> wrote: > Hello Fiends, > > In my homework Person class extends AddressImpl and implemnts > MyOwnInterface > I have created constructor according to arguments in this class and > AddressImpl one. > > I have a problem with implementation of public AddressInterface > getAddress(){ > return ....???? > > } I do not approach this the way you do. Anyway: // Your person extended addressImpl. Try to return the parent: public AddressInterface getAddress(){ return super; } > > Should this method return all following methods? > public int getStreetNumber() > public String getStreetName() > public String getCountry() > > Thank you in advance for your help! > > Best regards, > Rafał Laczek > > ---------------------------------------------------- > Zło zrobi wszystko, by zaistnieć... > Thriller NIENARODZONY w kinach od 20 marca! > Zobacz zwiastun filmu > -->http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fnienarodzo...
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
