Created
April 16, 2018 09:59
-
-
Save ecanuto/0ba0e6609d7357df7a141f38ab33d827 to your computer and use it in GitHub Desktop.
Java class property
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 { | |
private String name; | |
public String getName() { | |
return this.name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
} | |
User user = new User(); | |
user.SetName("Joe Doe"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment