OOP Characteristics:
- 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.万物皆可对象
2.程序就是对象的集合,通过发送信息来告诉集合中的对象们应该做什么
3.每一个对象都有自己的,由其他对象组成的内存
4.每个对象都有一个类型
5.同一特定类型的对象可以接收相同的信息
点赞 (21)
回复