0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

デザインパターン

0
Posted at

0章

実装とインタフェースの切り分け

インタフェースに対してプログラミングすることが積極的に取り入れられている。

再利用の方法

継承

  • スーパークラスで実装されている内容をサブクラスにも引き継ぐ

オブジェクトコンポジション

  • オブジェクトは「もの」、コンポジションは「組み立て」
  • 別のオブジェクトが持つ機能を組み合わせて利用することをオブジェクトコンポジションと言う
    • 例: SD カード
      • SDカードを挿しこむことで大容量が記録できるように拡張される
      • 携帯電話は、SDカードの「記録する」という機能を利用して機能を拡張

参考文献:
TECHSCORE

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?