Learn how to design a basic software system using classes and inheritance.
- [Instructor] Sift lets us design our software…both in a protocol-oriented…and an object-oriented way.…It also supports generic and functional programming,…and often blurs the lines between…the various programming paradigms.…Let's see some benefits of using POP…over the classical object-oriented approach.…Let's assume that we want to implement…UI components which support specific animations…and feature custom rounded corners.…To demonstrate the problem,…we'll start with the classical superclass-based approach.…
Now I'm going to open up Xcode…and create a playground project for this demo.…Blank is good.…Let's put it on the desktop.…I'm going to call it SuperClassWay.…Now let's remove the border plate code…and also the comment.…We only need the UIKit framework.…All right.…I'm going to create a UI view subclass.…Let's call it CustomView.…
It inherits from UIView.…To keep it simple,…we'll support only one kind of animation…in this example.…So let's implement the simple animation…that fades out and then fades back in the view.…
- Comparing object-oriented programming with protocol-oriented programming
- Methods and class-bound protocols
- Adopting a protocol
- Declaring asynchronous behavior
- Preparing and implementing fallback logic
- Implementing an app using protocol-oriented programming
Skill Level Intermediate
1. Protocol-Oriented Programming
4. Implement the Weather App Using POP
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.