You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _i18n/en/_posts/2019-04-05-java-for-csharp-programmers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ So, here is my list. Bear in mind that this is written from a C# programmer's pe
30
30
(See also [this SO question](https://stackoverflow.com/questions/215497/in-java-difference-between-package-private-public-protected-and-private))
31
31
32
32
-`private` and `public` - works pretty much the same as in C#.
33
-
-`protected` - again, similar to its C# counterpart. A type wit this visibility is visible to all subclasses (in the same package and others)
33
+
-`protected` - again, similar to its C# counterpart. A type with this visibility is visible to all subclasses (in the same package and others)
34
34
- no modifier - `package private` - like `internal` in C#. Unfortunately, this can *only* be specified by not providing a modifier at all!
35
35
- No concept like `InternalsVisibleTo`. This can be rather annoying, especially when working with unit tests and integration tests; you would want to tighten the visibility for a particular class and/or method and `InternalsVisibleTo` plays a nice role in this.
0 commit comments