More actions
imported>qa22ahj No edit summary |
(Repair batch-0003 pages from live compare) |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
= OOP = | = OOP = | ||
'''Object Oriented Programming''' : 객체 지향 프로그래밍. | '''Object Oriented Programming''' : 객체 지향 프로그래밍. ~~객체를 지향하는 프로그래밍입니다.~~이 이전에 Object Based Progamming 것이 있었다.이 다음 세대의 프로그래밍 기법은 GenericProgramming이라고 이야기된다. | ||
이 이전에 Object Based Progamming 것이 있었다. | |||
이 다음 세대의 프로그래밍 기법은 | |||
== OOP... == | == OOP... == | ||
=== Definition === | === Definition === | ||
| Line 22: | Line 20: | ||
Code is more easily reusable | Code is more easily reusable | ||
== 용어 == | == 용어 == | ||
Class | * [[Class]] | ||
Encapsulation(캡슐화) | * Object | ||
Implementation(구현 : 인간의 개념 속에 존재하는 생각과 사상 등을 실제 물리적인 객체로 구성하는 일련의 작업. 예를 들어 새로운 구조의 컴퓨터 시스템을 만들어 내는 작업과 설계 과정을 거쳐서 전달된 내용을 실제 프로그램으로 구성하여 컴퓨터에서 사용할 수 있도록 하는 작업 등이 모두 구현 작업의 한 가지에 해당된다고 할 수 있다. : 정보문화사 컴퓨터 용어사전 발췌) | * Instance | ||
Attribute | * Association(연관) | ||
Member function | * Relation(관계) | ||
Private and public members | * Inheritance(상속) | ||
* Method | |||
* [protocol] | |||
Polymorfism | * Encapsulation(캡슐화) | ||
Virtual functions | * Interface | ||
Templates | * Implementation(구현 : 인간의 개념 속에 존재하는 생각과 사상 등을 실제 물리적인 객체로 구성하는 일련의 작업. 예를 들어 새로운 구조의 컴퓨터 시스템을 만들어 내는 작업과 설계 과정을 거쳐서 전달된 내용을 실제 프로그램으로 구성하여 컴퓨터에서 사용할 수 있도록 하는 작업 등이 모두 구현 작업의 한 가지에 해당된다고 할 수 있다. : 정보문화사 컴퓨터 용어사전 발췌) | ||
Generic programming | * Attribute | ||
* Class variable | |||
* Data member | |||
* Member function | |||
* Operation | |||
* Private and public members | |||
* Polymorfism | |||
* Virtual functions | |||
* Templates | |||
* [[GenericProgramming|Generic programming]] | |||
=== Basic rules to define objects === | === Basic rules to define objects === | ||
Objects should correspond real word objects | Objects should correspond real word objects | ||
| Line 51: | Line 58: | ||
[[프로그래밍분류]] | [[프로그래밍분류]] | ||
Latest revision as of 00:29, 27 March 2026
OOP
Object Oriented Programming : 객체 지향 프로그래밍. ~~객체를 지향하는 프로그래밍입니다.~~이 이전에 Object Based Progamming 것이 있었다.이 다음 세대의 프로그래밍 기법은 GenericProgramming이라고 이야기된다.
OOP...
Definition
Object-oriented programming is based in the principle of recursive design.
- Everything is an object.
- Objects perform computation by making requests of each other through the passing of messages.
- Every object has it's own memory, which consists of other objects.
- Every object is an instance of a class. A class groups similar objects.
- The class is the repository for behabior associated with an object.
- Classes are organized into singly-rooted tree structure, called an inheritance hirearchy.
Basic Idea
”Emphasis from verbs to nouns” It’s a natural way for people to ”think in objects”. Program consists of objects interacting with eachother Objects provide services.
이익
Clearer and easier to read Easier to maintain Code is more easily reusable
용어
- Class
- Object
- Instance
- Association(연관)
- Relation(관계)
- Inheritance(상속)
- Method
- [protocol]
- Encapsulation(캡슐화)
- Interface
- Implementation(구현 : 인간의 개념 속에 존재하는 생각과 사상 등을 실제 물리적인 객체로 구성하는 일련의 작업. 예를 들어 새로운 구조의 컴퓨터 시스템을 만들어 내는 작업과 설계 과정을 거쳐서 전달된 내용을 실제 프로그램으로 구성하여 컴퓨터에서 사용할 수 있도록 하는 작업 등이 모두 구현 작업의 한 가지에 해당된다고 할 수 있다. : 정보문화사 컴퓨터 용어사전 발췌)
- Attribute
- Class variable
- Data member
- Member function
- Operation
- Private and public members
- Polymorfism
- Virtual functions
- Templates
- Generic programming
Basic rules to define objects
Objects should correspond real word objects Responsibily area should be simple and compact All actions should be delegated to objects Don’t mix responsibilities Keep responsibily areas as general as possible to garantie reuse.
엮어가기
UML로 표기할수 있다. 객체지향용어한글화토론