Which keyword should you use?

You have a class with a property.
You need to ensure that consumers of the class can write to the value of the property.
Which keyword should you use?

You have a class with a property.
You need to ensure that consumers of the class can write to the value of the property.
Which keyword should you use?

A.
value

B.
add

C.
get

D.
set



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Johan

Johan

What about D Set ?