Java: OOP: Basic Concepts

21st January 2021 at 10:43pm
Java: Language: OOP

OOP 用类(class)和实例(object)来构造系统。

Object:

  • An object is an instance of a Class
  • Object have two characteristics: states and behaviors

它的目的还是那几项:封装、继承、多态、抽象。同时 Java 界喜欢讲 message passing,把调用一个类的方法当作传递消息。

参考: