클래스

class Car {
	// 인스턴스가 만들어 질 때 실행되는 코드(생성자) 
	constructor(brand, name, color) {
	}
}
class Car {
	// 인스턴스가 만들어 질 때 실행되는 코드(생성자) 
	constructor(brand, name, color) {
		this.brand = brand;
		this.name = name;
		this.color = color;
	}
}
class Car {
	// 인스턴스가 만들어 질 때 실행되는 코드(생성자) 
	constructor(brand, name, color) {
		// 생략
	}
		// drive 메서드 정의
	drive() {
	}
}

인스턴스

let avante = new Car('hyundai', 'avante', 'black');
let avante = new Car('hyundai', 'avante', 'black');
avante.drive();
avante.color;

this

추상화 vs 캡슐화