OOP Essentials - Thinking in Java

面向对象编程实践
本文探讨了面向对象编程中对象间如何通过消息传递提供服务。解释了程序如何组织为一系列对象,每个对象通过调用其他对象的方法来实现功能。此外,还强调了变量初始化的重要性。

1 --> Your program itself will provide services to the user, and it will accomplish this by using the services offered by other objects. Your goal is to produce a set of objects to provide the ideal services to solve your problems. 


2 --> It can look like a program is just a bunch of objects with methods that take other objects as arguments and send messages to those other objects.

3 --> The variables(include static variables and fields) are initialized before any methods can be called—even the constructor.


评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值