Created
July 13, 2016 14:34
-
-
Save Busata/716646ef9bbacff237aceb82756752a5 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 Person { | |
private final String firstName; | |
private final String lastName; | |
public Person(String firstName, String lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
} | |
public String getFirstName() { | |
return firstName; | |
} | |
public String getLastName() { | |
return lastName; | |
} | |
} | |
vs | |
class Person(val firstName: String, val lastName: String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment