search
search
Search
Login
Signup
search
Trend
Question
Official Event
Official Column
Career
NEW
Organization
List of users who liked
1
0
more_horiz
@uyaaaaaa
駆け出しにとっては悩ましいprivateとprotected
オブジェクト指向
クラス
Protected
駆け出しエンジニア
修飾子
Posted at
2024-03-30
注意
メモ書き程度ですので、間違っていても悪しからず。
なんなら修正コメントください。
private
そのクラス内でしか利用できない
クラス固有の機能に使う
protected
親子関係にあるクラスでのみ利用可能
子クラスでも利用したいときに使う
public
どの外部のクラスからでも利用可能
ビジネスロジックとして共通化された関数で使うことが多い
List of users who liked
1
0
List of comments
comment
0
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
What you can do with signing up
Sign up
Login
List of users who liked
1
0
more_horiz