(encapsulation)
개 . 기 과. 교 , , , 공 계, 경, 과 기 각 . , 기 . 게 (encapsulation)고 .
그 그 계 개 계 고, 객 각게 공 .
그 그 계 개 계 고, 객 각게 공 .
(inheritance)
개 개 그 기 . 객 , 게 subtype subclass고 .
객 그 " " 경 . 기 subclass 고 그 superclass . 게 공 , 구 , 거 superclass 고 그 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) .
객 객 교 공개고 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) .
각 . 공 "Printer" 고 , 기 , Print 각 . 그 (Dot matrix printer, Laser printer, Ink jet printer) Print 구 . , 기 Print Signature 고 , 구 subclass 각 게 .
"Printer" 기 고 고, dot matrix printer laser printer 간 공 고 , 그 . 개 (Incremental Development) 게 , 공 (attribute) .