Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Call-an-object-method/Swift/call-an-object-method.swift
Normal file
11
Task/Call-an-object-method/Swift/call-an-object-method.swift
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Class
|
||||
MyClass.method(someParameter)
|
||||
// or equivalently:
|
||||
let foo = MyClass.self
|
||||
foo.method(someParameter)
|
||||
|
||||
// Instance
|
||||
myInstance.method(someParameter)
|
||||
|
||||
// Method with multiple arguments
|
||||
myInstance.method(red:arg1, green:arg2, blue:arg3)
|
||||
Loading…
Add table
Add a link
Reference in a new issue