객? ¶
객 ¶
- 객 = 구고
, 기 구 고 과감 결 객 .
- 객 = +
객 ¶
- Identity() - 각 객 객 고 고, .
- Classification() - 구 객 (class) .
각 객 (instance) .
객 (operation) 기 갖고 , 구 고 게 .(구 객 갖 (attribute) . 그 값 .)
- Polymorphism() - 기 그 기 .
'(move)' 기 '교' , '' 각 .
- Inheritance() - 계(hierarchy)계 간 기 공.
, (subclass) 객 기 게 . , (super class) 게 .
객 개 ¶
- 객 그 과 게 기 개.
- 그 각각 객 각.
-- black box 개 : 그 객 그 객 구 고 .
그과 교 ¶
그 | 객 그 |
구 그 | 객 그 |
그 기 | 그 object |
, 그 | 그 |
객 ¶
- (data abstraction) : 객(data entity) . 객 .
- (encapsulation) : 객 과 객간 . 게 객 구 (information hiding) 개 . 기 (method)고 . 구 구 고 기 객 고 (state) .
- combining data and behavior : 기 .
- sharing : 구 공(sharing) 계 계 간 (inheritance) .
계 (reuse) 개.
구(specification), (generalization) 고 .
- (Capsulation) : 객 그 .
겉 그객 기 공 , 그고 꼭 거 게 .
그 객 . .
객 기 . 교 계 기 객 계 . 기 과 .
- 객(Class and Objectas any type data) : 기 2 . 객 고 고 구 고 .
그 객 기 기 까? 각 , .
고 기.
각 객 공 .
- (Inheritance) : 객 .
. 150. 기 300 . 150 개 300 개 . 게 . 300 고 .
- (Polymophism) : 개 곡 감 객 .
150 개 300 . . . 객 ( 300) ( 150 고 300 ).
기 개 .
객 개 계 ¶
1. 객 (object-oriented anaysis : OOA)
고 (model) 계(real-world) 계. 과 .
객 (object model) : 객과 그 객 구(static structure) 그간 계(interface) 객 그(object diagram) .
(dynamic model) : 간 그(state diagram) . 간(real-time) .
기 (fuction model) : 값 과 (DFD) .
2. 객 계(object-oriented design : OOD)
객 계 계 객 계 게 .
계(system design) : 구 . 과 , 결 , .
객 계(object design) : 구 계 고 . 구 구 고 .
3. 객 구(object-oriented programming : OOP)
계 그 . 객, , 개 객 (object-oriented programming language : C++, Smalltalk ) 객 개 고 , 고 객기 (object-oriented based programming language : Ada ) .
, 구 그 (structured programming language : C, Pascal ) 객 개 객 (OODBMS) 개 구 .
객 기개 그 , 계 각 그 고 , 개 .
, 구 그 (structured programming language : C, Pascal ) 객 개 객 (OODBMS) 개 구 .
객 기개 그 , 계 각 그 고 , 개 .