HackerNoon Mobile

Better reading experience on the app
Alias パターンを明らかにする@raffaeleflorio
1,092 測定値

Alias パターンを明らかにする

2022/05/11
@raffaeleflorio 1,092 測定値
tldt arrow
JA
Read on Terminal Reader
Read this story w/o Javascript

長すぎる; 読むには

Alias パターンは 2 つの問題を扱います。最初のものは、最終クラスがそのオブジェクトを構築する方法を拡張しています。 2 つ目は、パラメーターは同じだがセマンティックが異なるコンストラクターが多数あることです。 それを行っている間、継承よりもオブジェクトの構成を促進します。実際、サブクラス化も、影響を受けるクラスのコードの変更も必要ありません。 ある程度、オブジェクトの構造を装飾する方法と見なすことができます。

Company Mentioned

Mention Thumbnail
featured image - Alias パターンを明らかにする
Raffaele Florio HackerNoon profile picture

@raffaeleflorio

Raffaele Florio

react to story with heart

関連ストーリー

L O A D I N G
. . . comments & more!