class Shape {}private protocol Printable { func Print()}extension Shape: Printable { func Print() { //implementation print("shape print") }}let shape = Shape()shape.Print()