Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

11. What does the bang operator (! ) indicate when used as a suffix in a method

ID: 3909364 • Letter: 1

Question

11. What does the bang operator (! ) indicate when used as a suffix in a method call in Ruby? a. Modifies the object the method is called on b. Creates a copy of the object the method is called on c. Concatenates a "!" on the object it is called on d. Calls the method but does not change value of the object it is called on 12. If you had a "Book" class and you wanted to inherit from the "Library" class, what is the proper syntax to do so? a. class Book > Library b. class Book .. Library c. class Book

Explanation / Answer

Modifies the object it is called on The correct syntax is class Book