In C# specify access modifier for a method is equivalent to get and set
There must be an error in your question. You can't choose 2 responses and answer the question. The only correct answer is E
- You can't have an access modifier for both getter and setter (so A+F is wrong)
- Access modifier on getter OR setter must be more restrictive than the property's access modifier.
protected
is not more restrictive thaninternal
.