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.