
This video is only available to subscribers. Start a subscription today to get access to this and 470 other videos.
Open Closed Principle
Episode
#312
|
13 minutes
| published on
November 21, 2017
| Uses Xcode-9.1-beta1, swift-4
Subscribers Only
The Open Closed Principle (or OCP) states that a class should be open for extension, but closed for modification. The goal is to write classes that are more stable, and don't require constant changes themselves to support every scenario the software encounters. Instead, having a stable class to inherit from can provide a nice extension point for our software to customize it for other needs.
This episode is part of a series: S.O.L.I.D..
1. The SOLID Principles 4 min |
2. Single Responsibility Principle 17 min |
3. Open Closed Principle 13 min |
4. Liskov Substitution Principle 20 min |
5. Interface Segregation Principle 14 min |
6. Dependency Inversion Principle 21 min |