REPORT Z17_014.
CLASS vehicle DEFINITION .
PUBLIC SECTION.
METHODS: create.
ENDCLASS.
* Class IMPLEMENTATIONs
CLASS vehicle IMPLEMENTATION.
METHOD create.
WRITE: / '슈퍼클래스의 오리지널 메소드'.
ENDMETHOD.
ENDCLASS.
CLASS plane DEFINITION INHERITING FROM vehicle.
PUBLIC SECTION.
METHODS: create REDEFINITION.
ENDCLASS.
CLASS plane IMPLEMENTATION.
METHOD create.
CALL METHOD super->create.
WRITE: / '서브클래스의 재정의된 메소드'.
ENDMETHOD.
ENDCLASS.
* Global DATA
DATA : plane_ref type ref to plane.
* Classical Processing Blocks
START-OF-SELECTION.
CREATE OBJECT: plane_ref.
CALL METHOD: plane_ref->create.
CLASS vehicle DEFINITION .
PUBLIC SECTION.
METHODS: create.
ENDCLASS.
* Class IMPLEMENTATIONs
CLASS vehicle IMPLEMENTATION.
METHOD create.
WRITE: / '슈퍼클래스의 오리지널 메소드'.
ENDMETHOD.
ENDCLASS.
CLASS plane DEFINITION INHERITING FROM vehicle.
PUBLIC SECTION.
METHODS: create REDEFINITION.
ENDCLASS.
CLASS plane IMPLEMENTATION.
METHOD create.
CALL METHOD super->create.
WRITE: / '서브클래스의 재정의된 메소드'.
ENDMETHOD.
ENDCLASS.
* Global DATA
DATA : plane_ref type ref to plane.
* Classical Processing Blocks
START-OF-SELECTION.
CREATE OBJECT: plane_ref.
CALL METHOD: plane_ref->create.
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
231 | REPORT z18_028 | sapjoy | 2007.04.10 | 4281 |
230 | REPORT Z03_021 [5] | sapjoy | 2007.05.15 | 2737 |
229 | REPORT z18_002_d | sapjoy | 2008.04.16 | 2088 |
228 | REPORT Z18_000 [1] | sapjoy | 2008.04.16 | 2602 |
227 | REPORT Z17_019 [1] | sapjoy | 2007.02.15 | 2748 |
226 | REPORT Z17_018. | sapjoy | 2008.04.15 | 1860 |
» | REPORT Z17_014. [1] | sapjoy | 2007.02.13 | 2504 |
224 | Report Z15_047 [3] | sapjoy | 2007.12.06 | 2798 |
223 | REPORT Z15_044 [1] | sapjoy | 2008.04.15 | 2474 |
222 | REPORT Z15_039 | sapjoy | 2007.02.06 | 2315 |
221 | REPORT Z15_037. | sapjoy | 2007.02.06 | 2472 |
220 | REPORT Z15_033 | sapjoy | 2007.02.06 | 2987 |
219 | REPORT z15_032 | sapjoy | 2007.02.06 | 2578 |
218 | REPORT Z15_028 | sapjoy | 2007.02.01 | 2509 |
217 | REPORT Z15_026 [1] | sapjoy | 2007.09.13 | 2205 |
216 | REPORT Z15_026 | sapjoy | 2007.02.01 | 2758 |
215 | REPORT Z15_025 | sapjoy | 2008.04.15 | 1975 |
214 | REPORT z15_023 | sapjoy | 2007.01.31 | 2484 |
213 | REPORT Z15_022. | sapjoy | 2007.01.30 | 2495 |
212 | REPORT Z15_020 | sapjoy | 2007.01.30 | 2524 |
CLASS vehicle DEFINITION INHERITING FROM object.
PUBLIC SECTION.
METHODS: create.
ENDCLASS.
* Class Implementations
CLASS vehicle IMPLEMENTATION.
METHOD create.
WRITE: / 'Superclass : plane is from vehicle?'.
ENDMETHOD.
ENDCLASS.
CLASS plane DEFINITION INHERITING FROM vehicle.
PUBLIC SECTION.
METHODS: create REDEFINITION.
ENDCLASS.
CLASS plane IMPLEMENTATION.
METHOD create.
CALL METHOD super->create.
WRITE: / 'Subclass : YES'.
ENDMETHOD.
ENDCLASS.
* Global Data
DATA: plane_ref type ref to plane.
* Classical Processing Blocks
START-OF-SELECTION.
CREATE OBJECT: plane_ref.
CALL METHOD: plane_ref->create.