Module 10 Summary
Thomas J. Kennedy
Having completed the Polymorphism, Interfaces, and Protocols module (i.e., Module 10) you should now be comfortable:
-
discussing the differences between Abstract Base Classes and Protocols
-
implementing
__iter__
for a givenclass
-
summarizing when to use an inner class
1 Questions to Consider
Take a few minutes to think about the following:
-
How can an inner class simplify code?
-
How can an inner class made code more complex?
-
How do Abstract Base Classes relate to S.O.L.I.D, specifically ‘S’?
-
How do Abstract Base Classes relate to S.O.L.I.D, specifically ‘O’?
-
How do Abstract Base Classes relate to S.O.L.I.D, specifically ‘L’?
-
How do Abstract Base Classes relate to S.O.L.I.D, specifically ‘I’?
-
How do Abstract Base Classes relate to S.O.L.I.D, specifically ‘D’?
-
When is a Protocol be a better choice than an Abstract Base Class?
2 On to the Next Module…
The next module (i.e., Semester review & Things to Explore) will serve as a brief introduction to NumPy.