In this video we talk about the second major piece of the Object Oriented Programming puzzle, Encapsulation. Encapsulation is a technique that allows us to restrict access to any or all of the abstraction layers that we defined previously. By restricting access you control who uses what through a public interface.
0:00 Recap
1:32 What are Objects
4:11 Data Abstraction Example: The Point Object
11:10 What is Encapsulation
13:21 Encapsulation using Closure Functions
25:40 Example: Encapsulating Point Object
29:44 The nonlocal Keyword
34:01 Encapsulating Point, A better Approach
39:23 Encapsulating Point, An Even Better Approach
43:26 Public Interface
45:08 You Try: Create Rational Number Object
49:32 You Try: Create Tele-counter Object
53:56 Summary