Created
July 7, 2018 19:05
-
-
Save xcadaverx/ee444161c34509a18541e996b297d71b to your computer and use it in GitHub Desktop.
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
class FooSubClass: SomeFoo { | |
override func bar() { | |
print("FooSubClass.bar()") | |
} | |
} | |
let fooSubClass: Foo = FooSubClass() | |
fooSubClass.bar() // FooSubClass.bar() | |
let fooSubClassTwo: SomeFoo = FooSubClass() | |
fooSubClassTwo.bar() // FooSubClass.bar() | |
let fooSubClassThree: FooSubClass = FooSubClass() | |
fooSubClassThree.bar() // FooSubClass.bar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment