Home › Tutorials › Python OOP Concepts › Object Class
Object Class

Object Class


34. Object Class

In Python, all classes ultimately inherit from object. This is why every class gets access to common built-in object behavior.

Syntax

class Demo(object):
    pass

Example

class Demo:
    pass

obj = Demo()
print(isinstance(obj, object))

Output

True
Example

🏋️ Test Yourself With Exercises

Take our quiz on Object Class to test your knowledge.

Browse Quizzes »