This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol Swiftable { | |
var isKnowSwift: Bool { get } | |
} | |
protocol Engineer { | |
var team: Team { get } | |
var canDevelopiOS: Bool { get } | |
} | |
extension Engineer { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol Swiftable { | |
var isKnowSwift: Bool { get } | |
} | |
struct Steven: Engineer, Swiftable { | |
let team: Team | |
let canDevelopiOS: Bool | |
let isKnowSwift: Bool | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum Team { | |
case iOS | |
case android | |
} | |
protocol Engineer { | |
var team: Team { get } | |
var canDevelopiOS: Bool { get } | |
} |
NewerOlder