OOP 개념
https://dsaint31.me/mkdocs_site/python/oop/oop_0_00_OOP/
BME228
Object Oriented Programming (OOP) OOP는 Object 에 기반 하여, Object 를 이용 하고 Object 를 만들고(정의 및 구현), Object 를 조합 하여 프로그래밍 하는 Program paradigm의 하나. 을 가르킴. Program Paradigm 의 관점에
dsaint31.me
위의 url과 연결된 urls확인할 것.
Python 한정
2024.04.14 - [Python] - [Python] class 만들기.
[Python] class 만들기.
일반적인 class 만드는 법 일반적으로 class 만드는 법은 다음 코드를 참고할 것. class CustomClass (SuperClass0) : # class 정의 헤더. 클래스의 이름과 부모를 지정. # class class_variable0 = None # class가 가지는 at
ds31x.tistory.com
2023.08.20 - [Python] - [Python] instance methods, class methods, and static methods
[Python] instance methods, class methods, and static methods
Instance Methods instance를 통해 접근(=호출)되는 methods를 가르킴. 일반적인 methods가 바로 instance methods임. method와 function의 차이점 중 하나로 애기되는 "정의될 때 첫번째 parameter가 self이면 method "라는
ds31x.tistory.com
2023.07.13 - [Python] - [Python] overloading, overriding, and special methods
[Python] overloading, overriding, and special methods
일반적인 Overloading overloading (or over-load, 과적?)이란 같은 이름의 function, method, operator를 여러 개로 중복 정의하는 것을 가르킴. function의 경우, call시 입력되는 arguments가 할당될 parameters를 다르게
ds31x.tistory.com
추가적 내용들
동적인 attribute 추가
https://dsaint31.me/mkdocs_site/python/oop/oop_3_01_python_class/#class-attribute
BME228
Python에서의 Class Class 도 Python에서는 instance임. 다음이 Python에서 Class와 Object의 실체를 말해준다. 모든 Object는 Object를 super-class로 가진다. 모든 Class는 type이라는 Class의 instance이다. 우리가 Samp1 이
dsaint31.me
python class 에서 encapsulation 구현하는 방법.
https://dsaint31.me/mkdocs_site/python/oop/oop_3_02_python_encapsulation/
BME228
Python에서의 Encapsulation 관련 구현. Data Hiding 관점 Encapsulation을 엄격히 적용하려면, data에 직접 접근이 아닌 getter나 setter와 같은 method들을 통해서만 이루어져야 한다. 문제는 python에서는 이를 구현
dsaint31.me
관련하여 같이 보면 좋은 자료들
2023.10.06 - [분류 전체보기] - [Python] Python 정리
[Python] Python 정리
Programming Language and Python 소개2023.10.23 - [Python] - [Python] Programming Language and Introduction of Python. [Python] Programming Language and Introduction of Python.Computer and Program https://dsaint31.tistory.com/436 [CE] Computer and Progra
ds31x.tistory.com
'Python' 카테고리의 다른 글
[Py] Python에서 string formatting. (0) | 2024.09.04 |
---|---|
[Python] f-string과 for문 체크 문제 (0) | 2024.09.04 |
[Python] 사용자와 상호작용: 입력받기: input, argv, and sys (0) | 2024.07.24 |
[Programming] Binding: Name Binding and Language Binding (0) | 2024.06.06 |
[Python] Ex: Relative Path Import 시 주의할 점 (0) | 2024.06.04 |