コツコツ学習ブログ

プログラマのweb上のメモ的なもの

has-a の関係

has -a の関係とは

あるクラスが別のクラスをフィールド(データ、属性)として 利用している関係

Class A has-a ClassB