Created
March 30, 2015 20:01
-
-
Save jawwad/1ee4347debd082a3c768 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
import UIKit | |
class BaseGrid { | |
init() { | |
initGrid() | |
} | |
// Subclasses override this function | |
func initGrid() { | |
println("Superclass") | |
} | |
} | |
class SubclassGrid: BaseGrid { | |
override func initGrid() { | |
println("Subclass") | |
} | |
} | |
let test = SubclassGrid() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment