A student is an entity. An object has two parts: - State: What the object has. (Name, Age) - Behavior: What the object does. (Study, Attend Class) In code, state is called a property. Behavior is ...
Each pair is a property. A property holds different types of data: - Strings - Numbers - Arrays - Other objects - Functions When a function lives inside an object, it is called a method. Methods ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果