Quiz: What Does This Method Do?
What does this method do?
Make a Picture object Pick the picture of Jonathan Translate the picture by 100 and 100 Call the grow method and type in 50 and 50
- Jonathan grows 50 pixels wider and 50 pixels taller
- Jonathan grows 50% bigger
- Jonathan grows 50 pixels on each side
- Jonathan grows 50 years older
Run the program in BlueJ to see for yourself.
Oops. Should have checked my math. Half of 185 would be about 90 pixels, not 190.