Skip to content

Instantly share code, notes, and snippets.

@Kotlin-Native
Created July 31, 2015 09:04
Show Gist options
  • Save Kotlin-Native/65b3ef23315c296ab835 to your computer and use it in GitHub Desktop.
Save Kotlin-Native/65b3ef23315c296ab835 to your computer and use it in GitHub Desktop.
public class User {
private final String firstName;
private final String lastName;
private final boolean loggedIn;
public User(String firstName, String lastName, boolean loggedIn) {
this.firstName = firstName;
this.lastName = lastName;
this.loggedIn = loggedIn;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public boolean isLoggedIn() {
return loggedIn;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment