record (String email, String phone) { public User { if (email == null && phone == null) { throw new IllegalArgumentException(); } } public String email() { return email; } /*Access can be 'private'*/public/**/ void xylophone() { } }