-
-
Save jmorgan74/e149de340b3cf382d4ff1af80426ea7b 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; | |
public Person(String name) { | |
_name = name; | |
} | |
public sayName() { | |
return _name; | |
} | |
} | |
To make an instance of Person... | |
Person p = new Person("Ionakathryn"); | |
System.out.println( p.sayName() ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment