Fiveable
Fiveable

In the following code block, what is the scope of the variable "currentTemp" and the scope of the variable "temp"? public class Weather { private int currentTemp; public Weather(int temp) { currentTemp = temp; } }




© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.