Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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