Solved

Consider the Following Code Snippet: Public Class RewardPointsAccount

Question 22

Multiple Choice

Consider the following code snippet: public class RewardPointsAccount
{
Private int currentRewardPointBalance;
Private static int level1Cutoff = 15000;
) ..
}
If a program instantiates four objects using this class, which of the following statements will be true?


A) Each object will have a currentRewardPointBalance instance variable and a level1Cutoff instance variable.
B) All objects will share a single currentRewardPointBalance class variable and a level1Cutoff class variable.
C) Each object will have a currentRewardPointBalance instance variable, but all objects will share a level1Cutoff class variable.
D) All objects will share a currentRewardPointBalance class variable and each object will have a level1Cutoff instance variable.

Correct Answer:

verifed

Verified

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

Related Questions