全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Class, instance, attribute, method?

又称: class · instance (object) · attribute · method

Definition 23.1 High School Computer Science · 第 23 章 — Classes and Objects

A class is a new type of value, defined by the program. A value of that type is an instance of the class, also called an object. Each instance holds named values, its attributes; the functions defined in the class, which act on an instance, are its methods.

在原文中阅读 →