From e6bebd12b00e2f4eaf0c943444b7939a9cfb99ef Mon Sep 17 00:00:00 2001 From: 101zh <67253838+101zh@users.noreply.github.com> Date: Wed, 15 Nov 2023 20:14:32 +0000 Subject: [PATCH] chore(5.5.1): make instance variables private --- src/main/java/Unit5/Person.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/Unit5/Person.java b/src/main/java/Unit5/Person.java index 982678d..35925f6 100644 --- a/src/main/java/Unit5/Person.java +++ b/src/main/java/Unit5/Person.java @@ -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;