Created
December 3, 2019 00:38
-
-
Save raghuvarmabh/ef5de9581fbafe534103c81fa735e99e 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 static void main(String[] args) { | |
Person person = new Person("Tom Criuse", 44); | |
modifyPerson(person); | |
System.out.println(person.getName()); | |
} | |
private static void modifyPerson(Person person) { | |
person.setName("Brad Pit"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment