Skip to content

Commit

Permalink
chore(5.5.1): make instance variables private
Browse files Browse the repository at this point in the history
  • Loading branch information
101zh committed Nov 15, 2023
1 parent 8a60ad8 commit e6bebd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/Unit5/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// Have to get rid of package statement

public class Person {
String firstName;
String lastName;
int age;
String ssn;
private String firstName;
private String lastName;
private int age;
private String ssn;

public Person(String firstName, String lastName, int age, String ssn) {
this.firstName = firstName;
Expand Down

0 comments on commit e6bebd1

Please sign in to comment.