svn: /phpdoc/kr/trunk/language/oop5/ final.xml

From: Date: Sat, 11 Oct 2014 15:48:53 +0000
Subject: svn: /phpdoc/kr/trunk/language/oop5/ final.xml
Groups: php.doc.kr 
Request: Send a blank email to doc-kr+get-1936@lists.php.net to get a copy of this message
acidd15 Sat, 11 Oct 2014 15:48:53 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=335050 Log: update. Changed paths: U phpdoc/kr/trunk/language/oop5/final.xml Modified: phpdoc/kr/trunk/language/oop5/final.xml =================================================================== --- phpdoc/kr/trunk/language/oop5/final.xml 2014-10-11 15:29:22 UTC (rev 335049) +++ phpdoc/kr/trunk/language/oop5/final.xml 2014-10-11 15:48:53 UTC (rev 335050) @@ -1,15 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: n/a Maintainer: progcom Status: ready --> +<!-- $Revision$ --> +<!-- EN-Revision: 331135 Maintainer: progcom Status: ready --> +<!-- Reviewed: no --> + <sect1 xml:id="language.oop5.final" xmlns="http://docbook.org/ns/docbook"> <title>Final 키워드</title> <para> PHP 5는 자식 클래스가 메쏘드를 덮어 쓰는 것을 막도록, final 키워드를 - 지원합니다. 정의시에 final을 앞에 붙이면 됩니다. 클래스 자체를 final로 + 지원합니다. 정의시에 <emphasis>final</emphasis>을 앞에 붙이면 됩니다. 클래스 자체를 final로 정의하면 상속할 수 없습니다. </para> - - <example> - <title>Final 메쏘드 예제</title> + <para> + <example> + <title>Final 메쏘드 예제</title> <programlisting role="php"> <![CDATA[ <?php @@ -31,12 +34,13 @@ // 결과는 Fatal error: Cannot override final method BaseClass::moreTesting() ?> ]]> - </programlisting> - </example> - - <example> - <title>Final 클래스 예제</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title>Final 클래스 예제</title> + <programlisting role="php"> <![CDATA[ <?php final class BaseClass { @@ -55,8 +59,14 @@ // 결과는 Fatal error: Class ChildClass may not inherit from final class (BaseClass) ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> + <note> + <simpara> + 프로퍼티는 final로 선언될수 없으며, 오직 클래스와 메서드만 final로 선언될 수 있습니다. + </simpara> + </note> </sect1> <!-- Keep this comment at the end of the file

« previous php.doc.kr (#1936) next »