U E D R , A S I H C RSS

Hardcore Cpp Study/두번째숙제/Characteristic OfOOP/변준원

(encapsulation)


. 묶는 . 를 들 , , 번, 보를 , , 능들 . , 능들 . 묶는 (encapsulation) .
미는 를 데 , 는 덩 는 데 .

(inheritance)


. , 는데 subtype subclass .
" " 를 바 . 를 subclass 를 superclass . , , superclass subclass들 .



(Polymorphism)


러 목 (Polymorphism) . 란, 복 는 능. , 른 방 . 를 들, (file)들 . (text file), 문 (format file), (file with graphics) 등 . 는 방 , , Print .
~cpp 
Text file -> Print();
Formatted file -> Print();
File with graphics -> Print();

Print는 메며, . .




(infomation hiding)


보를 . , 는 데 내부 들만 . 논문 리를 .
보를 public interface Interface를 보를 . , Public Interface를 "무 . 보는 ." .
Public Interface는 른데, C++는 "public" "public"란 목들만 . Effel는 "export"는 란 목들만 . POINT 를 보면 move setcolor 는 public interface . move setcolor 불리 . 는 부 signature signature는 , (input parameter) (output parameter) .
내부 . , 떤 변 를 배(array)(list) 른 부 . signature만 바 . 를 들, sorting sequence sorting quick sorting 바뀔 . (maintainability) (extendability) .



(Abstract Class)


(instance)를 만들 낼 목 subclass들 는데, (Abstract class, Virtual class) . 변 부는 , Signature만 . (Abstract function) 부르며, subclass를 . subclass , (Concrete class) 부른. 를 만들 .
. "Printer" 면, 내는 변, 는 Print 등 . (Dot matrix printer, Laser printer, Ink jet printer) 는 방 르므 는 Print . 만, 는 Print Signature만 며, 러 subclass .
"Printer" , dot matrix printer laser printer 등 , 를 만. (Incremental Development) 며, (attribute) 를 모델링는데 .
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:21
Processing time 0.0248 sec