Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Function Overloading

// same function name different arguments
func test() { ... }
func test(value: Int) -> Int{ ... }
func test(value: String) -> String{ ... }
func test(value1: Int, value2: Double) -> Double{ ... }
 
PREVIOUS NEXT
Tagged: #Swift #Function #Overloading
ADD COMMENT
Topic
Name
6+1 =