File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -344,11 +344,19 @@ convenience イニシャライザは二次的なもので、クラスのイニ
344344
345345クラスの指定イニシャライザは、値型のシンプルなイニシャライザと同じ方法で記述します:
346346
347- ![ 指 ;定 ;イ ;ニ ;シ ;ャ ;ラ ;イ ;ザ ; ] ( ../assets/14_designatedInitializer.png )
347+ ``` swift
348+ init (<#parameters#>) {
349+ < #statements #>
350+ }
351+ ```
348352
349353covenience イニシャライザは同じスタイルで記述できますが、` init ` キーワードの前にスペース区切りで ` covenience ` 修飾子を配置します:
350354
351- ![ covenience イ ;ニ ;シ ;ャ ;ラ ;イ ;ザ ; ] ( ../assets/14_convenienceInitializer.png )
355+ ``` swift
356+ convenience init (<#parameters#>) {
357+ < #statements #>
358+ }
359+ ```
352360
353361### <a id =" initializer-delegation-for-class-types " >クラス型のイニシャライザの委譲\( Initializer Delegation for Class Types\) </a >
354362
You can’t perform that action at this time.
0 commit comments