Programming, Swift, Object Oriented, Objective C.
types. Remember Liskov substitution principle — we are able to use inherited type wherever base type can be used. What is more interesting is polymorphic behaviour of objects. In Swift and Objective-C we can make drawing routine a method and override it to implementing specific drawing. class