[7장] 클래스 - 북 스터디
🤓 스터디원 🤓 강지윤 @eeeyooon 이예솔 @lulla-by 이성령 @sryung1225 이에스더 @Stilllee 채하은 @chaehaeun 코딩 마을 방범대 : 7장. 클래스 질문과 답변 1. Static Method와 Prototype Method 스태틱 메서드와 프로토타입 메서드의 차이점을 설명해주세요. sryung1225 스태틱 메...
![[7장] 클래스 - 북 스터디](https://cdn.hashnode.com/res/hashnode/image/upload/v1713239846411/340e7eb3-3d96-47d9-8ad7-181a22b84eb5.png)
Search for a command to run...
Articles tagged with #class
🤓 스터디원 🤓 강지윤 @eeeyooon 이예솔 @lulla-by 이성령 @sryung1225 이에스더 @Stilllee 채하은 @chaehaeun 코딩 마을 방범대 : 7장. 클래스 질문과 답변 1. Static Method와 Prototype Method 스태틱 메서드와 프로토타입 메서드의 차이점을 설명해주세요. sryung1225 스태틱 메...
![[7장] 클래스 - 북 스터디](https://cdn.hashnode.com/res/hashnode/image/upload/v1713239846411/340e7eb3-3d96-47d9-8ad7-181a22b84eb5.png)
클래스 01. 클래스와 인스턴스의 개념 이해 객체지향 프로그래밍에서 거의 반드시 등장하는 클래스라는 단어의 의미는 일반적으로 쓰이는 의미(계급, 집단, 집합)와 거의 흡사하다. 일반적인 개념으로 살펴보았을 때, 음식이라는 범주 안에는 고기, 채소, 과일 등등 다양한 것들이 들어갈 수 있다. 그리고 과일 범주 아래에는 배, 사과, 바나나, 감, 오렌지 등이 포함된다. 여기서 배, 사과, 바나나 등은 직접 만질 수도 볼 수도 있는 구체적이고 실존하...
![[7장] 클래스](https://cdn.hashnode.com/res/hashnode/image/upload/v1713239662068/e8bd3ad6-0ac1-449a-bd3e-f58e9d601fb9.png)
제네릭 클래스 // number 타입의 리스트를 생성하는 클래스 class NumberList { constructor(private list: number[]) {} push(data: number) { this.list.push(data); } pop() { return this.list.pop(); } print() { console.log(this.list); } } list 필드를...

인터페이스를 구현하는 클래스 타입스크립트의 인터페이스는 클래스의 설계도 역할을 할 수 있다. 다음과 같이 인터페이스를 이용해 클래스에 어떤 필드들이 존재하고, 어떤 메서드가 존재하는지 정의할 수 있다. interface CharacterInterface { name: string; moveSpeed: number; move(): void; } class Character implements CharacterInterface { ...
