第一章: Introduction to Objects:
1、a pure approach to object-oriented programming:
- Everything is an object.
- A program is a bunch of objects telling each other what to do by sending messages.
- Each object has its own memory made up of other objects.
- Every object has a type.
- All objects of a particular type can receive the same messages.
2、An object provides services:
one of the best ways to think about objects is as “service providers.”
In a good object-oriented design, each object does one thing well, but doesn’t try to do too much.
3、Interchangeable objects with polymorphism
We call this process of treating a derived type as though it were its base type upcasting.
4、Why Java succeeds
Systems are easier to express and understand
Maximal leverage with libraries
Error handling
Programming in the large