Use the @classmethod Decorators to Overload a Constructor in Python . The @classmethod decorator allows the function to be accessible without instantiating a class. Such methods can be accessed by the class itself and via its instances. When used in overloading, such functions are called factory methods.10 Eki 2021