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 BookExplanation / Answer
Modifies the object it is called on The correct syntax is class BookRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.