All Articles (7)

Inheritance

Inheritance - along with encapsulation and polymorphism - is a cornerstone of object-oriented programming.

The basic idea behind inheritance is that objects can inherit the characteristics of other...

Composition

Composition - similar to inheritance - is used to model relationships between multiple objects. Inheritance should be used if the relationship between objects can be represented as an is a...

Method Dispatch in Swift

Every time, when a method is called in Swift, Method Dispatch is involved. It tells your application where to find the method in memory before it gets executed...

Access Control

Swift’s ability to provide different access levels to types, properties, methods initializers, and subscripts is the reason why techniques like Encapsulation work at all in Swift - so it’s...

ContiguousArray

The Swift standard library provides different data types that represent multiple elements in a collection - one of these types is ContiguousArray.

Compared to Array, which...

Encapsulation

Encapsulation is one of the fundamental concepts of object-oriented programming. The idea behind Encapsulation is to combine data and functions into a single unit and protect the internal state and...

Polymorphism

Swift is a young language, but incorporates many old ideas and contains all features that have become standard in object-oriented programming languages.

Polymorphism is one of these standards - it...