Class, Object, Entity: What's the difference?

后端 未结 3 1094
有刺的猬
有刺的猬 2021-02-05 23:11

I also see other terms as well: Entity Object, Value Object, etc. Are there other terms out there that I should know, and what do these terms refer to?

Can the differen

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 23:48

    • Class defines an entity, while an object is the actualentity
    • Class is a conceptual modelthat defines allthecharacteristics and actions required of an object, whilean object is a real model
    • Class is a prototype of an object
    • All objects belonging to the same class have the samecharacteristics and actions

提交回复
热议问题