Created
January 29, 2017 09:48
-
-
Save cyrilletuzi/8d24df233688b6280d072c0cd3c0f27e to your computer and use it in GitHub Desktop.
This file contains 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 { | |
public String firstName; | |
public User(String firstName) { | |
this.firstName = firstName; | |
} | |
public void sayHello() {} | |
} | |
User myUser = new User("Henri"); | |
myUser.firstName; | |
myUser.sayHello(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment