svn: /phpdoc/kr/trunk/language/oop5/ inheritance.xml
[email protected] (Yu Ilho)
| Newsgroups | php.doc.kr |
|---|---|
| Message-ID | <[email protected]> |
acidd15 Sun, 28 Dec 2014 07:32:57 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=335405
Log:
initial translate
Changed paths:
U phpdoc/kr/trunk/language/oop5/inheritance.xml
Modified: phpdoc/kr/trunk/language/oop5/inheritance.xml
===================================================================
--- phpdoc/kr/trunk/language/oop5/inheritance.xml 2014-12-28 06:15:10 UTC (rev 335404)
+++ phpdoc/kr/trunk/language/oop5/inheritance.xml 2014-12-28 07:32:57 UTC (rev 335405)
@@ -1,35 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
+<!-- EN-Revision: 334699 Maintainer: acidd15 Status: ready -->
+<!-- Reviewed: no -->
+
<sect1 xml:id="language.oop5.inheritance" xmlns="http://docbook.org/ns/docbook">
- <title>Object Inheritance</title>
+ <title>객체 상속</title>
<para>
- Inheritance is a well-established programming principle, and PHP makes use
- of this principle in its object model. This principle will affect the way
- many classes and objects relate to one another.
+ 상속은 정착된 프로그래밍 원칙이며, PHP는 이 원칙을 객체모델에서 사용하고 있습니다.
+ 이 원칙은 많은 클래스와 객체들을 연관짓는 방법에 영향을 미칩니다.
</para>
<para>
- For example, when you extend a class, the subclass inherits all of the
- public and protected methods from the parent class. Unless a class overrides
- those methods, they will retain their original functionality.
+ 예를 들면, class 를 확장했을때, subcalss 는 부모의 클래스로부터 모든 public, protected 메서드를 상속받게 됩니다.
+ 자식 클래스가 메서드를 재정의 하지 않는한, 원래 기능이 유지 됩니다.
</para>
<para>
- This is useful for defining and abstracting functionality, and permits the
- implementation of additional functionality in similar objects without the
- need to reimplement all of the shared functionality.
+ 상속은 추상화된 기능을 정의하는데 유용합니다. 그리고, 공유된 기능을 위해 비슷한 객체들마다 기능을 재정의 하는 수고를 덜어줍니다.
</para>
<note>
<para>
- Unless autoloading is used, then classes must be defined before they are
- used. If a class extends another, then the parent class must be declared
- before the child class structure. This rule applies to classes that inherit
- other classes and interfaces.
+ 자동로딩이 사용되지 않는한, 클래스는 사용되기 이전에 정의되어 있어야 합니다.
+ 클래스가 다른것으로 확장된다면, 자식 클래스 구조보다 부모클래스가 앞서 선언되어 있어야 합니다.
+ 이 규칙은 다른 클래스과 인터페이스를 상속받는 클래스들에게도 적용됩니다.
</para>
</note>
<sect2 xml:id="language.oop5.inheritance.examples">
<example xml:id="language.oop5.inheritance.examples.ex1">
- <title>Inheritance Example</title>
+ <title>상속 예제</title>
<programlisting role="php">
<![CDATA[
<?php