File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: c1f37a6c270aadbbb3da56a3973ffd62197adf2b Maintainer: hirokawa Status: ready -->
3
+ <!-- EN-Revision: 5c04cf0fd637b258d2a3bf7f4b7aba1beef6d823 Maintainer: hirokawa Status: ready -->
4
4
<!-- CREDITS: takagi,mumumu -->
5
5
6
6
<sect1 xml : id =" language.oop5.visibility" xmlns =" http://docbook.org/ns/docbook" >
@@ -200,7 +200,7 @@ class Book
200
200
201
201
class SpecialBook extends Book
202
202
{
203
- public protected(set) $title; // OK。読み取りのアクセス権が広く、書き込みは同じだから。
203
+ public protected(set) string $title; // OK。読み取りのアクセス権が広く、書き込みは同じだから。
204
204
public string $author; // OK。読み取りのアクセス権は同じで、書き込みが広いから。
205
205
public protected(set) int $pubYear; // 致命的なエラー。private(set) プロパティは final です。
206
206
}
You can’t perform that action at this time.
0 commit comments