PrepAway - Latest Free Exam Questions & Answers

which form should you implement the score member?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
protected field

B.
public static field

C.
public static property

D.
public property

3 Comments on “which form should you implement the score member?

  1. rao says:

    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

Leave a Reply