From c43db37c60789c17f65cd02d2dc7e0605d9e960e Mon Sep 17 00:00:00 2001 From: jagdish-15 Date: Sat, 18 Jan 2025 20:29:20 +0530 Subject: [PATCH] Update exercises/practice/bob/.approaches/introduction.md Co-authored-by: Kah Goh --- exercises/practice/bob/.approaches/introduction.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/practice/bob/.approaches/introduction.md b/exercises/practice/bob/.approaches/introduction.md index a1c999178..a9afe5f9d 100644 --- a/exercises/practice/bob/.approaches/introduction.md +++ b/exercises/practice/bob/.approaches/introduction.md @@ -84,7 +84,8 @@ class Bob { } ``` -This approach utilizes nested `if` statements and a predicate for determining if a message is a shout. For more details, refer to the [`if` Statements Approach][approach-if]. +This approach uses variables to avoid rechecking whether Bob is silent, shouting or questioning. +For more details, refer to the [method-based `if` Statements Approach][approach-method-if]. ## Approach: answer array