130,325 views
34 votes
34 votes
A student has created a Liquid class. The class contains variables to represent the following. A double variable called boilingPoint to represent the boiling point of the liquid. A double variable called freezingPoint to represent at what temperature the liquid will freeze. A boolean variable called hasFrozen to indicate whether the liquid is now frozen. The object liquid1 will be declared as type Liquid. Which of the following statements is accurate?

a. An instance of a Liquid object is hasFrozen.
b. An instance of the liquid1 class is Liquid.
c. An attribute of boilingPoint object is double.
d. An attribute of freezingPoint is liquid1.


An attribute of the liquid1 object is freezingPoint.

User Infomofo
by
3.1k points

1 Answer

8 votes
8 votes

Answer:

b. An instance of the liquid1 class is Liquid.

I hope this helped!!!!!!

User Rgvcorley
by
2.3k points