by Editorial | Jun 12, 2021 | Grade 11 - Critical algorithms, Grade 11 - OOP, Grade 12 - OOP
A typed method can only return one value. (Yes, a method MAY have several return statements but only one of them will execute depending on the condition.) Sometimes we need to return more than one value. To get around the limitation above we can return one array, that...