Skip to content

Commit 200ca06

Browse files
aditimantri2196BillWagner
authored andcommitted
Categories in "Accessibility" are incorrect (#6207)
* Categories in "Accessibility" are incorrect -The brief provided for "private protected" should be the brief for "protected internal" instead. -As per my knowledge in c#, "private protected" access modifier does not exist. If it does what does this exactly do? * Update classes-and-objects.md -Updated brief for protected internal as per the review comment -Added private protected back with some modification as per the reference doc. * Update classes-and-objects.md Added back the private protected with its original brief. * Updated the number of categories of accessiblility Updated the number of categories of accessiblility from five to six. * quick grammar fix
1 parent a7b97e7 commit 200ca06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/csharp/tour-of-csharp/classes-and-objects.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following provides an overview of the kinds of members a class can contain.
4949

5050
## Accessibility
5151

52-
Each member of a class has an associated accessibility, which controls the regions of program text that are able to access the member. There are five possible forms of accessibility. These are summarized below.
52+
Each member of a class has an associated accessibility, which controls the regions of program text that are able to access the member. There are six possible forms of accessibility. These are summarized below.
5353

5454
* `public`
5555
- Access not limited
@@ -58,11 +58,11 @@ Each member of a class has an associated accessibility, which controls the regio
5858
* `internal`
5959
- Access limited to the current assembly (.exe, .dll, etc.)
6060
* `protected internal`
61-
- Access limited to the containing class or classes derived from the containing class
61+
- Access limited to the containing class, classes derived from the containing class, or classes within the same assembly
6262
* `private`
6363
- Access limited to this class
6464
* `private protected`
65-
- Access limited to the containing class or classes derived from the containing type within the same assembly
65+
- Access limited to the containing class or classes derived from the containing type within the same assembly
6666

6767
## Type parameters
6868

0 commit comments

Comments
 (0)