Let's investigate some body parts. First, we'll check whether bones are present. You need to fix the containsBones method and all associated logic so that, without changing the program's behavior, it returns an Object: "Yes" instead of true, and "No" instead of false.
OOP: Fix inheritance problems
You must be signed in to leave a comment
19 May, 07:02
This is desired output: and I achieved it by changing only one line of code: BUT, the Judge didn't accept my solution... And guess what? the only difference between mine and CG solutions is that I made only one change and it works, but the CG's solution considered there must be three changes. Fantastic 🙂
24 September 2021, 09:22
I can't understand
17 August 2021, 23:04
There isn't really any inheritance correction to do in this, despite the task name. It should have been called "Replace efficient boolean logic with inefficient string-based logic".
8 August 2020, 00:15
Looked at the help section for this one. Had no idea at first what was needed.
17 June 2020, 21:01
It seems to me that the task is more about figuring out what the heck the author of the test wants from me, than "fixing inheritance problems", I still appreciate the task though, I just feel like the initial confusion I had while solving it, was unwarranted and not title of task related, but I guess it's good for your brain.
11 August 2019, 02:42
Can someone help pls!! , i getting correct output in Intellij, got lost no idea why its failing!!
11 August 2019, 03:05
Never mind, I got it. Just couple of changes!