On 5/28/2015 9:54 AM, 'Dmitri Sandratsky' via JPassion.com: Java
Programming wrote:
Hi
I don't understand a Homework of lab 1027.
Does return type of getAddress() should be AddressInterface type ?
Yes, and that is what the homework says indeed.
-S
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
o AddressInterface getAddress();
* The AddressInterface is a Java interface that has the following
methods.
o int getStreetNumber();
o void setStreetNumber(int streetNumber);
o String getStreetName();
o void setStreetName(String streetName);
o String getCountry();
o 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]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/jpassion_java.
For more options, visit https://groups.google.com/d/optout.
--
-------------------------------------------------------------------
Sang Shin, [email protected]
President and Chief Instructor of JPassion.com (JavaPassion.com)
http://www.linkedin.com/in/javapassion (Linkedin)
http://twitter.com/javapassion (Tweeter)
Life is worth living... with Passion!
Practically Free 3 to 5 days Live, Hands-on, Online Codecamps on
Java,Spring,Hadoop,HTML5,Ruby/Rails,Grails,JavaScript/jQuery,Android
http://jpassion.com/codecamps
----------------------------------------------------------------------
--
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.