Last active
April 11, 2021 00:22
-
-
Save mcsee/8f89b53d0be21a6779e4be53673edf5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Client { | |
Address address; | |
public ZipCode zipCode() { | |
return address.zipCode(); | |
} | |
} | |
public class Address { | |
private ZipCode zipCode; | |
public ZipCode zipCode() { | |
return new ZipCode('CA90210'); | |
} | |
} | |
public class Application { | |
ZipCode zipCode = client.zipCode(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment