All Subjects
Light
AP Computer Science A
currentTemp is an instance variable declared within the Weather class. It stores the current temperature value for each object created from the Weather class.
A variable declared within a class, which represents the state or characteristics of individual objects created from that class.
A method used to retrieve the value of an instance variable from an object.
Setter Method: A method used to modify the value of an instance variable in an object.