| Slide 39 of 57 | Lecture 2: Using Objects | |
Answers
- An accessor–it doesn't modify the original string but
returns a new string with uppercase letters
- box.translate(-5, -10), provided the method is called
immediately after storing the new rectangle into box