Solved

Consider the Following Code Snippet

Question 46

Multiple Choice

Consider the following code snippet:
Public class Coin
{
Private String coinName;
) . .
}
Which of the following statements is correct?


A) The coinName variable can be accessed by any user of a Coin object.
B) The coinName variable can be accessed only by methods of the Coin class.
C) The coinName variable can be accessed only by methods of another class.
D) The coinName variable cannot be accessed at all because it is private.

Correct Answer:

verifed

Verified

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

Related Questions