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

被折叠的 条评论
为什么被折叠?



