2018-10-17 【PHP入門】private、protected、publicの違いについて private そのクラスからしかアクセスできない protected そのクラスと、サブクラスからしかアクセスできない public どこからでもアクセスできる