.. (לתיקייה המכילה) | ||
Is the word "is" is missing from the third example in page 8? | |
Yes, the sentence in the third example should read: "Then the classroom is not-full and not-empty or the classroom is almost-full and not-empty" |
What is the delimiter between story sentences? | |
The character '\n' (new-line) is the delimiter between story sentences. That is, between every 2 sentences in the story there will the the '\n' character |
Can a function have 2 annotations attached to it? | |
No, a function will have at most 1 annotation attached to it |
Can annotations contain the word 'or'? | |
No, annotations will not contain this word |
Can functions that are annotated with an annotation of "when" or "given" also throw a ComparisonFailure exception? | |
No, only functions that are annotated with a "then" annotation can throw a ComparisonFailure exception. |
If there are more than 1 method that matches a sentence in a class and/or in its superclasses, who should we invoke? | |
You should invoke only the matching method that is the closest to the most derived class in the inheritance. So, when you start looking for a matching method by going up the inheritance (to the superclass of each class), invoke the first method you encounter that matches the sentence. |
What do you mean by "if the object in the field supports clone.." in the backup of the fields section in page 13? | |
When you want to check if a class supports the clone method, you should check if it implements the Cloneable interface. If it does, you can assume that it is also overrides the "clone" method and that you can use that method to clone the object |