The stage being set, Laura decides that it is time to let her readers know what is going on. Hence, the "System.out.println" statement. A bit wordy, but it let's her editor know that what comes between those parentheses goes into the final text of the book: all the text she puts in between quotation marks. Why is the variable 'damsel.whatIsYourName' then not in quotation marks? Because it is not a literal, but rather an object's method. By keeping it out of the quotation marks, Laura lets her editor know that he has to go look for the damsel object (he would find out that it was of the "Humans" class) then for the method "whatIsYourName" (he would see that it returned the damsel's name). All of that for a damsel's name!
Had she put damsel.whatIsYourName inside of the quotation marks, her editor would have printed out in the final copy of the book : "The villain has tied up + damsel.whatIsYourName!". No Pulitzers for that. In order for her editor to substitute the variable name for the word name, Laura closes the quotation marks before she writes it. The plus "+" lets her editor know that she wants to join the two statements.
At this point, it might be a good idea to review what Laura's overall description of a villain looks like. None of this material is new, just a compilation of what we've gone over in the past few pages.
Villains are based on the idea of humans. They are identical, except that they have some additional qualities, namely a mustache, a hat, a certain "look", some level of drunkenness, and a certain quantity of damsels in their possession. Your standard villain will look mean, start the day out sober, and not yet have captured any damsels.
Whenever the main plot says that a villain drinks whiskey, his level of drunkedness will go up by one.
If someone asks a villain how drunk he is, the villain will always respond with his level of drunkenness.
If the villain is supposed to tie up a damsel, tie up the specified damsel, then add one to the number of damsels he has tied up. Then print out "Oh my gosh! (the specified damsel) has been tied up!"
|