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.
所有评论(0)