[swift] 자식 클래스가 부모 클래스의 프로토콜을 따르는 방법
class ParentClass: SomeProtocol {
    // 부모 클래스의 구현
}

class ChildClass: ParentClass, AnotherProtocol {
    // 자식 클래스의 구현
}

위의 예시에서 ChildClassParentClassAnotherProtocol 두 개의 프로토콜을 따를 수 있습니다.

프로토콜을 따르는 클래스나 구조체는 해당 프로토콜에서 요구하는 모든 속성과 메서드를 구현해야 합니다. 만약 구현되지 않을 시 컴파일 오류가 발생하게 됩니다.

참고문헌: Swift Language Guide - Protocols