I am taking a iOS course online provided by a famous university. I don't understand why the following code use override
and it is legal.
According to the official definition, we use
override
to override superclass' methods. Where is the subclass and superclass in the following code?What's been override and by what?
public override var description: String { return "\(url.absoluteString) (aspect ratio = \(aspectRatio))" }