How to explain an object?

后端 未结 27 1559
广开言路
广开言路 2020-12-23 23:16

It\'s been years since I thought of this, but I am training some real juniors soon and need to explain what an object is to someone who doesn\'t know what it is.

B

27条回答
  •  自闭症患者
    2020-12-23 23:34

    objects (usually) have state, behaviour, and identity.

    basic o-o programming principles are encapsulation, inheritance, and polymorphism.

    basic o-o design principles are here: http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod

提交回复
热议问题