Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

iosbrain/Protocol-Oriented-Programming-in-Swift-1

Repository files navigation

Protocol Oriented Programming in Swift, Part 1 of 2

Here are two Xcode 9 playgrounds written in Swift 4 that highlight protocol oriented programming and value semantics.

Protocol Polymorphism.playground demonstrates polymorphism inherent in Swift's protocols.

Generic List.playground shows you how to build generic data structures in Swift -- a queue and a stack that can contain any type. It also demonstrates how you can build powerful protocols by inheriting from other ones without the interference you'd get from class inheritance.

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /