From 306f14bbdae6404bdd3ef8f5f56508ce759a66f9 Mon Sep 17 00:00:00 2001 From: Ethan McCue Date: Tue, 21 Jul 2026 07:52:52 -0400 Subject: [PATCH] Update getter_and_setters.md --- src/visibility/getter_and_setters.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/visibility/getter_and_setters.md b/src/visibility/getter_and_setters.md index f825d5e..9b490e3 100644 --- a/src/visibility/getter_and_setters.md +++ b/src/visibility/getter_and_setters.md @@ -16,11 +16,11 @@ class Person { this.name = name; } - String getAge() { + int getAge() { return this.age; } - void setAge(String age) { + void setAge(int age) { this.age = age; } } @@ -40,4 +40,4 @@ class Person { The answer to that is interesting. We'll get to it, but the short story is that its a bit of a holdover from a very weird period in the early 2000s. -I mention it specifically so that you know that there isn't any important information you are missing and you are not crazy. \ No newline at end of file +I mention it specifically so that you know that there isn't any important information you are missing and you are not crazy.