Solved

Given the Following Class Definition, Which of the Following Are

Question 60

Multiple Choice

Given the following class definition, which of the following are considered part of the class's public interface? public class CashRegister
{
Public static final double DIME_VALUE = 0.1;
Private static int objectCounter;
Public void updateDimes(int dimes) {. . .}
Private boolean updateCounter(int counter) {. . .}
}


A) objectCounter and updateCounter
B) DIME_VALUE and objectCounter
C) DIME_VALUE and updateDimes
D) updateDimes and updateCounter

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions