-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjava-specifiers-visibility.html
48 lines (30 loc) · 1.07 KB
/
java-specifiers-visibility.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<HTML lang="fr">
<HEAD>
<style>
.ok {color: green;}
.ko {color: red;}
</style>
</HEAD>
<BODY STYLE="width:100%" >
<a href="http://xahlee.info/java-a-day/access_specifiers.html">From</a>
<br>
<table>
<tr>
<th>Specifier</th><th>subclass</th><th>class</th><th>package</th><th> world</th>
</tr>
<tr>
<td>private</td> <td><span class="ko">X</span></td> <td><span class="ok">V</span></td> <td><span class="ko">X</span></td> <td><span class="ko">X</span></td>
</tr>
<tr>
<td>protected</td> <td><span class="ok">V</span></td> <td><span class="ok">V</span></td> <td><span class="ok">V</span></td> <td><span class="ko">X</span></td>
<tr>
<tr>
<td>public</td> <td><span class="ok">V</span></td> <td><span class="ok">V</span></td> <td><span class="ok">V</span></td> <td><span class="ok">V</span></td>
</tr>
<tr>
<td>(none)</td> <td><span class="ko">X</span></td> <td><span class="ok">V</span></td> <td><span class="ok">V</span></td> <td><span class="ko">X</span></td>
</tr>
</table>
</BODY>
</HTML>