Protocol Oriented Programming in Swift 4 and iOS 11

所在平台: Udemy

课程主页: https://www.udemy.com/course/protocol-oriented-programming-in-swift/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Swift 4 和 iOS 11 的协议导向编程 课程概述:协议导向编程自从戴夫·阿布拉罕斯在WWDC的演讲后备受关注并广泛采用。许多开发者已经对面向对象编程熟悉,尤其是Cocoa Touch库长期以来采用这种方法。虽然Objective-C在某种程度上使用了协议,但Swift为协议导向编程增加了更强大的功能。在本课程中,我们将深入探讨Swift中的协议导向编程,了解它如何帮助我们完成项目。 课程内容将从理解类和结构体开始,并学习如何根据需求正确地初始化它们。我们将讨论类和结构体之间的差异,以及这些差异对它们如何遵循某些协议的影响。此外,不同类型的协议属性和方法声明将影响能够符合其要求的对象类型。我们还将深入探讨协议的常见用途,如协议-委托模式,并探索协议的其他功能,例如协议作为类型、继承、扩展、遵循、组合和类型别名等。 希望大家能看到协议导向编程在项目中的机会和潜力,期待你加入本课程。

课程评论(0条)

课程详情

Protocol Oriented Programming has gained some traction and widely adopted ever since the WWDC talk by Dave Abrahams. Most of us already familiar with Object Oriented programming for so many years, especially with the fact that the Cocoa Touch library has been using this approach. Objective-C has used the Protocol to some degree but Swift has added more powerful features to Protocol Oriented Programming. In this course we will look into Protocol Oriented Programming in Swift more closely and deeper to find out what it can deliver in helping us with our projects. We will start off with the understanding of Class and Struct, and how to properly initialized them based on our needs. Class and Struct have their differences and it will impact what kind and how they can adopt to certain Protocols. Different types of Protocol property and method declarations will also affect the type of objects that can conform to its requirements. Probably the most common use of Protocol is its role on Protocol - Delegate pattern. However we will explore many different Protocol capabilities and features, such as Protocol as type, inheritance, extension, conformance, composition, typealias to name a few. I hope you can see the opportunity and the potential of what Protocol Oriented Programming can do in your project and am looking forward to have you joining this course.

课程标签

0人关注该课程

主题相关的课程