Abstract Class and Abstract Method in Python

Telusko
Youtube
Related Topic
:- programming skills Python

Method which is decorated with @abstractmethod and does not have any definition. Python Don't support Abstract class, So we have ABC(abstract Base Classes) Module, so we can use here to achieve abstract classes. And will see what is abstract class and why we need it. An abstract class can be considered as a pattern for other classes. A class which contains one or more abstract methods is called an abstract class. An abstract method is a method that has a declaration but does not have an implementation. 

Comments