길/Python

클래스 / 객체 / 인스턴스 구분

7he8oy 2021. 2. 12. 21:11

gmlwjd9405.github.io/2018/09/17/class-object-instance.html

 

[Java] 클래스, 객체, 인스턴스의 차이 - Heee's Development Blog

Step by step goes a long way.

gmlwjd9405.github.io

 

클래스 : 설계도

객체 : 설계도로 구현할 대상   -> 클래스의 인스턴스라고도 칭함.

인스턴스 : 구현된 실체

 

자바스크립트에서 

new Date() 같은 것을 할 때 

Date 클래스의  new method를 이요해서 인스턴스를 생성하는 것 같기도...

' > Python' 카테고리의 다른 글

Data Hiding  (0) 2021.02.12
Object Lifecycle / reference count  (0) 2021.02.12
magic methods  (0) 2021.02.12
subclass에서 super()는 superclass의 method를 읽는다.  (0) 2021.02.12
Class의 모든 method는 self를 인자로 받는다.  (0) 2021.02.12