Skip to content

Instantly share code, notes, and snippets.

@jawwad
Created March 30, 2015 20:01
Show Gist options
  • Save jawwad/1ee4347debd082a3c768 to your computer and use it in GitHub Desktop.
Save jawwad/1ee4347debd082a3c768 to your computer and use it in GitHub Desktop.
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