Answer to Question #184658 in Java | JSP | JSF for Tim

Question #184658

*Based on answers A-E, which option is correct? 


3. Given the following code, which is a n "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


1
Expert's answer
2021-04-24T11:28:50-0400

The correct option is:

A. weight

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog