[TIJ] 001 - Thinking in Object

本文探讨了面向对象编程中对象的基本概念,包括对象的状态、行为和身份等特性,并讨论了对象与方法的关系,以及如何通过消息传递来实现程序的运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1 - Everything is an OBJECT; 

     I respectfully doubt it. I, myself is an OBJECT; but what I do is an OBJECT, too? "I wake up", obviously "Wake up" is not an OBJECT. In other way of speaking, CAN WE CONSIDER a METHOD (a class's behavior) as an OBJECT???  If we can not, I think I must re-consider the sentence above. anyone help me about this??

    1.1 - An OBJECT has STATES, BEHAVIORS AND IDENTITIES.

     I am respectfully doubt about it, too. Originally quote is : "AN OBJECT HAS STATE, BEHAVIOR AND IDENTITY.'" Should they use plural form like STATES, BEHAVIORS AND IDENTITIES?? or each object only has one unique state, behavior and identity?

4 - Every OBJECT has a TYPE (CLASS);

5 - All OBJECTS of particular type can receive the same MESSAGE;

3 - Every OBJECT has its own memory made up of other objects;

2 - A program is just a bunch of OBJECTS telling each other what to do by sending MESSAGES;

 

/** I know I re-sort these sentences in an odd order. I guess it's better for me to understand the definitions. */

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值