What's the difference between entity and class?

前端 未结 7 1080
孤独总比滥情好
孤独总比滥情好 2020-12-23 11:01

Is entity an instance of class?

7条回答
  •  Happy的楠姐
    2020-12-23 11:31

    An entity usually refers to something, anything really, that has a unique and separate existence.

    In software development this word is almost only used to denote that one instance is different from another instance and they are independent of each other.

    A class, on the other hand, defines or contains the definition of an object. Once that object is constructed based on the definition, then you get your instance or object instance.

提交回复
热议问题