全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Access specifier?

Definition 1.5 University Computer Science — Year 2 · 第 1 章 — From C to C++: Classes and Resource Management

The access specifiers public: and private: divide a class’s declarations into those any code may use and those only the class’s own member functions may use. A class starts private, a struct public, for its members and for its base classes (Chapter 3); otherwise the two keywords are the same.

在原文中阅读 →