Dec-01-2019, 05:24 PM
Hi everybody,
I am new to programming, I have networking back ground.
These days I am learning OOP.
I noticed following:
I can define parent class with out ()as shown in example#1, I can also define parent class with ()as shown in example#2. what is the conventional way to define Parent class is it with () or without ()?
Thanks and have a good weekend!!
I am new to programming, I have networking back ground.
These days I am learning OOP.
I noticed following:
I can define parent class with out ()as shown in example#1, I can also define parent class with ()as shown in example#2. what is the conventional way to define Parent class is it with () or without ()?
Thanks and have a good weekend!!
# example#1 >>> class TEST: ... pass ... # example#2 >>> class TEST(): ... pass