본문 바로가기

깜놀하는 해므찌로

검색하기
깜놀하는 해므찌로
프로필사진 agnusdei1207

  • 분류 전체보기 (599)
    • IT (598)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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 31
Tags
  • ajax 사용 예시
  • formgroup
  • modal
  • 앵귤러 애니메이션
  • route
  • mysql if
  • 셀렉트박스 커스텀
  • TAILWIND
  • 옵저버블
  • angular route
  • ApexChart
  • egov spring ajax 사용 예시
  • 모달
  • Oracle LISTAGG 사용 예시
  • 호버
  • 검색
  • angular animation
  • 앵귤러 모달
  • 스크롤 이벤트
  • scroll
  • 아이오닉 스크롤 이벤트
  • prisma
  • angular button
  • Angular Router
  • flex-1
  • 스크롤 이벤트 감지
  • Router
  • summary
  • angular modal
  • Ionic modal
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록typescript 접근제한자 (1)

깜놀하는 해므찌로

typescript 접근제한자

/** 접근제한자 * public(default) : 아무것도 명시하지 않으면 기본 public 생략 상태 / 어디서든 접근 가능 * protected : 자식클래스에서 접근 가능 * private : # 표기 가능 / 자기자신 클래스에서만 접근가능 */ class Car{ #privat:number = 30; protected protect:string = "protected"; name:string = "Car"; // default public 생략 // color:string; constructor(public readonly color:string){ this.color = color; } start(){ console.log("start"); console.log(this.#privat); /..

IT 2023. 5. 23. 12:46
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바