PrepAway - Latest Free Exam Questions & Answers

Which of the following is TRUE with regards to the Private access modifier?

You work as a senior developer at ABC.com. The ABC.com network consists of a single domain
named ABC.com.
You are running a training exercise for junior developers. You are currently discussing the use of
the Private access modifier to specify the declared accessibility of a member or a type.
Which of the following is TRUE with regards to the Private access modifier?

PrepAway - Latest Free Exam Questions & Answers

A.
It only allows access to the containing class or types derived from the containing class.

B.
It only allows access to the current assembly.

C.
It only allows access to the current assembly or types derived from the containing class.

D.
It only allows access to the containing type.

E.
It allows unrestricted.

Explanation:

2 Comments on “Which of the following is TRUE with regards to the Private access modifier?


Leave a Reply