Usia iOS 개발기록

  • 홈
  • 태그
  • 방명록

down casting 1

03.4 타입 캐스팅_Type Casting

타입 캐스팅(Type casting)타입 캐스팅(Type casting) : 객체의 타입을 확인하거나 다른 타입으로 변환하는 기능  타입 확인(Type Checking)is 연산자를 통해 객체의 타입을 확인할 수 있다.is 연산자는 주어진 객체가 특정 타입인지를 확인하고 true 또는 false를 반환한다.class Animal { }class Dog: Animal { }let animal = Animal()let dog = Dog()print(animal is Animal) // 출력: trueprint(dog is Animal) // 출력: trueprint(animal is Dog) // 출력: falseprint(dog is Dog) // 출력: true   업캐스팅(Upca..

Swift 2023.07.12
이전
1
다음
더보기
프로필사진

Usia iOS 개발기록

iOS, Swift, Git, GitHub

  • 분류 전체보기 (56)
    • Swift (22)
    • Xcode (3)
    • UIKit (23)
    • Git, GitHub (8)

Tag

ios, git, swift문법, github, iOS앱개발, 깃, 아이폰앱개발, cocoatouch, 깃허브, Xcode, UIKit, DataCollection, swift, Navigation, Swift기초, 데이터컬랙션, Snippets, iOS프로젝트를 위한 최소한의 Swift문법, 스위프트, pushViewController,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/01   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바