Objects vs instance in python

后端 未结 5 1794
情话喂你
情话喂你 2020-12-13 11:29

In C++ there are just objects and classes, where objects are instances of classes.

In Python, a class definition (i.e., the body of a class) is called an object. And

5条回答
  •  春和景丽
    2020-12-13 12:02

    Everything in Python is an object. Even classes, which are instances of metaclasses.

提交回复
热议问题