This file contains 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
import XCPlayground | |
import Foundation | |
// in Xcode 7 use Editor/Show Rendered Markup to display the formatted comments | |
//: # First things first: The Protocols | |
//: It is good Swift practice to start with your protocols | |
//: Instead of a common base classes we define protocols | |
protocol Hardware { | |
var name: String {get} |