The task seems to be complicated. I don't understand the logic of it.
1) How can the containsBones() method return an Object and simultaneously a String "Yes"?
2) What return type should the BodyPart's containsBones() method have?
3) What Object does it need to return?
4) Do i understand correctly that for the printlnLivingParts() method call in main method, the output should be: Hand Yes instead of true?
I don't understand the task
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
14 February 2019, 14:19solution
1-3) String is an object
4) it will out put just "yes"
+2
Zbigniew
15 February 2019, 18:18
Thanks, it cleared a lot for me. The task is done.
+1