| 概念 | 目的 | 機能例 | クラスとの関係 |
|---|---|---|---|
| 名前空間 | 識別子(名前)の衝突回避、整理 | MyApp.Utils.Math.add |
クラスを含めて整理可能だが必須ではない |
| スコープ / アクセス修飾 | 外部からのアクセス制御、情報隠蔽 |
private, protected, #field など |
クラス内で完結 |
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme