In this video I show you how to create abstract base classes in python 3 using the abc library's ABCMeta class and abstractmethod decorator. The use of abstract base classes enables you to specify object behavior at the top of your inheritance hierarchy, thus creating a stable architecture that is extended via subclasses to implement the specified behavior. To illustrate and explain the concepts of abstract base classes in python I create a simple fleet simulation application.
Index:
Architecture Overview - • Python 3 Programing: Abstract Base Classes
Technical Details - • Python 3 Programing: Abstract Base Classes
Implementation Approach - • Python 3 Programing: Abstract Base Classes
Create Package Structure - • Python 3 Programing: Abstract Base Classes
mainapp.py - • Python 3 Programing: Abstract Base Classes
weapon.py - • Python 3 Programing: Abstract Base Classes
powerplant.py - • Python 3 Programing: Abstract Base Classes
vessel.py - • Python 3 Programing: Abstract Base Classes
torpedo.py - • Python 3 Programing: Abstract Base Classes
Test Torpedo class - • Python 3 Programing: Abstract Base Classes