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 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: c1f37a6c270aadbbb3da56a3973ffd62197adf2b Maintainer: hirokawa Status: ready -->
3+ <!-- EN-Revision: 5c04cf0fd637b258d2a3bf7f4b7aba1beef6d823 Maintainer: hirokawa Status: ready -->
44<!-- CREDITS: takagi,mumumu -->
55
66 <sect1 xml : id =" language.oop5.visibility" xmlns =" http://docbook.org/ns/docbook" >
@@ -200,7 +200,7 @@ class Book
200200
201201class SpecialBook extends Book
202202{
203- public protected(set) $title; // OK。読み取りのアクセス権が広く、書き込みは同じだから。
203+ public protected(set) string $title; // OK。読み取りのアクセス権が広く、書き込みは同じだから。
204204 public string $author; // OK。読み取りのアクセス権は同じで、書き込みが広いから。
205205 public protected(set) int $pubYear; // 致命的なエラー。private(set) プロパティは final です。
206206}
You can’t perform that action at this time.
0 commit comments