Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active Apr 11, 2021
Embed
What would you like to do?
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