Can we have different access modifiers on get/set methods of a property

Q

Can we have different access modifiers on get/set methods of a property ?

✍: Guest

A

No we can not have different modifiers same property. The access modifier on a property applies to both its get and set accessors.

2007-10-23, 4932👍, 0💬