Created
September 12, 2016 20:38
-
-
Save anhnguyen1618/4f93d3f6ddb2c116d46d0ee89fdf8d13 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 Person { | |
private String name; | |
private int age; | |
public Person(String nameAtStart) { | |
this.age = 0; | |
this.name = nameAtStart; | |
} | |
public void printPerson() { | |
System.out.println(this.name + ", age " + this.age + " years"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment