I noticed that the compiler won\'t let me override a stored property with another stored value (which seems odd):
class Jedi {
var lightSaberColor = \"Bl
If you attempt to do that in Swift 5 you will be greeted by a
Cannot override immutable 'let' property 'lightSaberColor' with the getter of a 'var'
Your best bet is to declare it as a computed property.
This works as we are just overriding the get {} function
class Base {
var lightSaberColor: String { "base" }
}
class Red: Base {
override var lightSaberColor: String { "red" }
}