You are creating a class named Game.
The Game class must meet the following requirements:
Include a member that represents the score for a Game instance.
Allow external code to assign a value to the score member.
Restrict the range of values that can be assigned to the score member.
You need to implement the score member to meet the requirements.
In which form should you implement the score member?

A.
protected field
B.
public static field
C.
public static property
D.
public property
What about the part “Restrict the range of values that can be assigned to the score member.”? Ain’t there some code snippets for this one?
0
0
inside the SET of the property you can restrict the value assigned by the client with some business logic. This is an hint to choose PROPERTY than a simple FIELD
0
0
D
0
0