본문 바로가기

Programmer

검색하기
Programmer
프로필사진 Yuwel

  • 분류 전체보기 (21)
    • Java (8)
    • Spring (4)
    • Django (0)
    • 백준 (5)
    • 설치 (1)
    • js (1)
    • UML (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/09   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Tags
  • JSON파싱
  • 1158
  • 1181번 백준
  • ojdbc6연결
  • 백준
  • spring oracle
  • javascript class
  • laravel
  • 백준 #10845
  • 단어 정렬
  • 1158 백준
  • 스택
  • Laravel 설치
  • 요세푸스
  • 10828번
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록js (1)

Programmer

Class

//Animal 클래스 class Animal { //생성자 constructor(type, name, sound) { this.type = type; this.name = name; this.sound = sound; } say() { console.log(this.sound); } } //Animal 클래스를 상속받는 Dog 클래스 class Dog extends Animal { //생성자 constructor(name, sound) { super("개", name, sound); } } //Animal 클래스를 상속받는 Cat 클래스 class Cat extends Animal { //생성자 constructor(name, sound) { super("고양이", name, sound); } } co..

js 2020. 6. 7. 15:02
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바