An application includes a class named Person. The Person class includes a method named
GetData.
You need to ensure that the GetData() method can be used only by the Person class or a
class derived from the Person class.
Which access modifier should you use for the GetData() method?
A.
Internal
B.
Protected
C.
Private
D.
Protected internal
E.
Public
Explanation:
The protected keyword is a member access modifier. A protected member is accessible
within its class and by derived class instances.