Description of the object

1. In a computer, classes are used to describe objects. Classes are used to explain what attributes and methods an object has.

2. Relationship between classes and objects
(1) Classes are templates of objects.

(2) Objects are instances of classes.

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐