December 2015
Intermediate to advanced
400 pages
13h 3m
English
Create another subclass of the Monster type. Call this one Vampire. Override the terrorizeTown() function so that every time an instance of the Vampire type terrorizes a town, it adds a new vampire thrall to an array of vampires on the Vampire type. This array of vampire thralls should be empty by default. Terrorizing a town should also decrement the town’s population by one. Last, exercise this Vampire type in main.swift.
Read now
Unlock full access