*Based on answer choices A-E, what is the code's output?
3. Given the following code, which is an "instance variable" of the "Fruits" class?
class Fruits
{
public weight;
Fruits(double w) { weight = w; int height = 10}
public setHeight() { int h = 15; }
}
A. weight
B. height
C. w
D. h
E. All of the options
A. weight
Comments
Leave a comment