第一章:对象简介
1、Java的五大特征,也是面向对象的五大特征:
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:所有属于同一类型的对象能接收同样的信息
1、Java的五大特征,也是面向对象的五大特征:
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:所有属于同一类型的对象能接收同样的信息