I am trying to declare an abstract class A with a constructor with a default behavior: all subclasses must initialize a member self.n:
A
self.n
You should define the methods as abstract as well with the @abc.abstractmethod decorator.
@abc.abstractmethod