When do I need to define a class as this:
class test:
as opposed to this:
class test():
In other words, what difference does it make whether or not there is a parenthesis?
When do I need to define a class as this:
class test:
as opposed to this:
class test():
In other words, what difference does it make whether or not there is a parenthesis?
Parentheses after a class definition are used to indicate inheritance. If you dont inherent it from any other classes. Just simply declare it without parentheses. Look at this for more information.