This is how I am defining a class:
class Foo():
def __init__(self, a, b):
self.a = a
self.b = b
So, when defining a class, the parameters to be passed for initialization are in the brackets immediately after the __init__
method.
My question is, what is supposed to be in, or what is the point of, the brackets just after the name of the class Foo
.
I've looked around, but everything I have been able to find so far has either not actually put anything in those brackets, or has put something in, but hasn't explained why.
Thanks in advance!