Hi 
I don't understand a Homework  of lab 1027.
Does return type of getAddress()  should be  AddressInterface type ?

Dimtry .  

The homework is to modify the MyPersonMultipleInterfaces project above.   
(You might want to create a new project by copying the 
MyPersonMultipleInterfaces project.)  You can name the new project in any 
way you want but here I am going to call to call it as 
MyPersonMultipleInterfaces2.  
   
   - 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.
   - Initialize a Person object with proper data and display it.



-- 
You received this message because you are subscribed to the Google Groups 
"JPassion.com: Java Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/jpassion_java.
For more options, visit https://groups.google.com/d/optout.
  • [jpassion_java] LAB... 'Dmitri Sandratsky' via JPassion.com: Java Programming

Reply via email to