How to Define an Empty Class in Python


In this example, we will learn how to define an empty class using the pass parameter in Python.

Source Code

class MyClass:
    pass
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement