Your example above would be something like this in...
# getting-started
r
Your example above would be something like this in Java:
Copy code
public class Customer {
	private String name;
	private String city;

	public String getName() {
		return name;
	}

	public String getCity() {
		return city;
	}
}

public class CustomerKt {
	public static String getCity(Customer customer) {
		return "xyz";
	}
}