서브 스크립트란? 콜렉션, 목록, 또는 시퀀스의 멤버 요소에 접근할 수 있는 단축키 인덱스로 값을 설정하고 조회하기 위해 사용한다.
클래스는 메소드, 프로퍼티와 다른 특징을 다른 클래스로부터 상속받을 수 있다.
초기화는 클래스, 구조체, 열거형 인스턴스를 사용하기 위해 준비 작업을 하는 단계이다.
클래스 인스턴스가 소멸되기 직전에 호출, 선언을 위해 deinit 키워드 사용클래스 타입에서만 사용
옵셔널 체이닝이란? nil일 수도 있는 프로퍼티나, 메소드, 서브스크립트에 질의(query)하는 과정
에러 처리란? 프로그램 실행 시 에러가 발생하면 상황에 대해 적절한 처리를 하는 것 Swift에서는 런타임에 에러가 발생한 경우 처리를 위해 에러의 발생, 감지, 증식, 조작을 지원하는 일급 클래스를 제공한다. 에러의 표시와 발생 Representing and Thr
Swift는 구조화된 방식으로 비동기(asynchronous)와 병렬(parallel) 코드 작성을 지원한다. 비동기 코드는 일시적으로 중단되었다가 다시 실행할 수 있지만, 한 번에 프로그램의 한 부분만 실행된다. 짧은 작업을 계속 진행하면서 긴 실행 작업을 계속한다.
타입 캐스팅이란? 인스턴스의 타입을 확인하거나 인스턴스를 같은 계층에 있는 다른 상위 클래스나 하위 클래스로 취급하는 방법
열거형은 특정 구조체나 클래스의 기능을 처리하기 위해 자주 사용된다. 이와 비슷하게 특정 문맥에서 좀 더 복잡한 타입을 위해 사용할 수 있는 유틸리티 클래스나 구조체를 정의할 수 있다. Swift에서는 이 기능을 위해 중첩 타입을 지원한다.
익스텐션을 이용해 클래스, 구조체, 열거형 혹은 프로토콜 타입에 기능을 추가할 수 있다.
프로토콜이란? 특정 기능 수행에 필수적인 요소를 정의한 청사진 프로토콜을 만족시키는 타입을 프로토콜을 따른다(conform)고 함. 프로토콜 문법 프로토콜 정의 프로토콜을 따르는 타입 정의 subclass의 경우 superclass를 프로토콜 앞에 적
자동 참조 카운팅이란? 앱의 메모리 사용량을 추적하고 관리하기 위해 사용, 인스턴스가 더이상 필요하지 않을 때 인스턴스에 의해 사용된 메모리를 할당 해제함
Swift는 코드에서 발생할 수 있는 안전하지 않은 동작을 방지한다.Swift는 동일한 메모리 영역에 대한 다중 접근이 일어나지 않도록 막기 위해, 메모리의 위치를 수정하는 코드가 독점 접근 권한을 요구한다. Swift는 메모리를 자동으로 관리하므로 대부분 메모리 접근
접근 제어란? 다른 소스 파일과 모듈에서 코드의 부분에 대한 접근을 제한하는 것. 코드 구현 세부를 숨기고 해당 코드에 접근하고 사용될 수 있는 기본 인터페이스를 지정할 수 있다.
비트 연산자를 사용해 데이터 구조 내에서 개별 원시 데이터 비트를 조작할 수 있다.