public static void selectableMethods(Selectable selectable) {
//write your code here
}
I did not understand what they wanted in there, and "marked" the code, and passed. (understood the other requirements, and added them).
They have not done this before (told us to put code somewhere, if they did not want code in there ?)
Passed task, but it has a place telling me to do new coding, and I did not......makes no sense ?
Resolved
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Ivan
3 December 2019, 12:59
if (selectable instance of Food) {
selectable.onSelect();
}
0
ThomasLC
22 May 2019, 08:40
Because you can do a onSelect() method in it:
selectable.onSelect();
0
Henk
22 May 2019, 09:16
ok.....not sure what you mean too, lol! I am saying they usually only mark it correct if you put code where they WANT the code, even if your code will also work,
In this instance, they marked it fine.
+1