Skip to content

Instantly share code, notes, and snippets.

Last active Sep 20, 2021
What would you like to do?
public class Client {
Address address;
//client now has to expose its address
public address() {
return address;
public class Address {
private ZipCode zipCode;
public ZipCode zipCode() {
return new ZipCode('CA90210');
public class Application {
ZipCode zipCode = client.address().zipCode();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment