How to create an empty Class in Python?
The pass keyword used on the second line indicates an empty class without data attributes and methods.
class Employee: pass e1 = Employee() print(e1) e1.name = "John Doe" print(e1.name)
Sample output of above program.
<__main__.Employee object at 0x0000000002DA51D0> John Doe
2019-06-23T10:54:52+05:30
2019-06-23T10:54:52+05:30
Amit Arora
Amit Arora
Python Programming Tutorial
Python
Practical Solution