What does it mean to inherit from the object class?


#1

Question

What does it mean to inherit from the object class?

Answer

In Python, the object class gives any class you make the core behaviors you’d want from any object, regardless of what you add onto it. Examples include parent-child relationships between objects, specifying how to initialize your object, and class descriptions.
For a much better response than I could give, take a look at this StackOverflow top answer on why object is inherited and what it does.
And don’t worry, this is not at all required to be understood to know how to use and create classes and objects!


FAQ: Learn Python - Introduction to Bitwise Operators - Class Syntax