Last time, we talked about objects in Java, and how a class can have an abstract method; a method without code. Such a class is an abstract class and cannot be instantiated, you have to inherit from it to provide for the missing methods, and then the derived can be instantiated and base class pointers can point to it. In Swift, it works a little differently. Regular classes cannot have abstract methods, but sometimes it's a good to have them, so Swift offers "protocols". in Java, they're called "interfaces" and in C++ there's no special name for them, they're classes like any other class. A protocol is a class with no data and none of whose methods have any code. Why would you even want them? If you inherit from a protocol, you must provide all of the code for the missing methods. In Swift (as in Java), you can inherit from ONE class and from as many protocols as you like. This is a weird system but came about because C++'s more direct inheritance system led to all sorts of weird complexities with the language. In C++, you can inherit from as many classes you like ("multiple inheritance"). Seems straightforward--seems powerful--and it is, but it leads to problems, the big one is "diamond inheritance." Suppose class B inherits from class D. Suppose class C inherits from class D. Suppose class A inherits from both class B and class C. D / \ B C \ / A "Diamond inheritance". B and C has a copy of everything D has. A has a copy of everything B and C has. So, does A have two copies of D or just one copy? If D has a string called stuff. Does A stores two copies of that string, or just one? If D has a method, and both B and C override that method, when A calls the method, which one does it call? The B version or the C version? C++ meticulously resolves all the ambiguities. It distinguishes between "virtual inheritance" and "nonvirtual inheritance" and it may require you to specify which method you mean. If B and C both override D's print method, you may have to say A->B::print() or A->C::print() to make the distinction...which is why in that case I always override A's print method so that A has only one print method (but C++ doesn't require this). In modern languages you can inherit from ONE class and from as many protocols as you like. The diamond inheritance problem then goes away since protocols don't have data so no ambiguity there and protocols don't have code so ambiguities there. I write a class called Dog and it inherits from Animal. Then Dog automatically has Animal's methods (and data). It then implements the following protocols, the Mammal protocol, the Barking protocol, the RollOver protocol. Any methods that are in these protocols, I now must write for the Dog class. And I can Mammal pointers Barking pointers, and RollOver pointers point to any Dog object. The Mammal pointer doesn't know that it's pointing to a Dog, and I can a program using Mammals without knowing what a Dog is, or even before the Dog class has even been invented, knowing that it will work for any Mammal, even ones that won't be developed for another fifteen years.