Abstract Classes and Polymorphism
Learn about the usage of abstract classes in Python.
We'll cover the following...
Abstract classes
Suppose we have a Shape
class and we derive the Circle
and Rectangle
classes from it. Each class contains a method called draw()
. However, drawing a shape doesn’t make too much sense; therefore, we do not want the draw()
method of the Shape
...