Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Protocols

protocol Greet {

  // blueprint of a property 
  var name: String { get }


  // blueprint of a method 
  func message() 
}
 
PREVIOUS NEXT
Tagged: #Swift #Protocols
ADD COMMENT
Topic
Name
1+2 =