Hierarchical Inheritance

Run Settings
LanguageSwift
Language Version
Run Command
class Animal { func walk(){ print("\(String(describing: type(of: self))) walk!") } }
class Carnivore : Animal { func eat() { print("\(String(describing: type(of: self))) eat!"); } }
class Cat : Carnivore {}
class Lion : Carnivore {}
class Dog : Carnivore {}
Editor Settings
Theme
Key bindings
Full width
Lines