Question 1/12: This code demonstrates protocol inheritance – true or false?
Hint: Click to show.
protocol MakesDiagnoses {
func evaluate(patient: String) -> String
}
protocol PrescribesMedicine {
func prescribe(drug: String)
}
protocol Doctor: MakesDiagnoses, PrescribesMedicine { }
Link copied to your pasteboard.