扩展

class Shape {}

private protocol Printable {
    func Print()
}

extension ShapePrintable {
    func Print() {
        //implementation
        print("shape print")
    }
}

let shape = Shape()
shape.Print()