Created
July 31, 2015 09:04
-
-
Save Kotlin-Native/65b3ef23315c296ab835 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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