Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java には、Class::newコンストラクタ参照の構文があります。メソッドの呼び出し可能な参照があることは知っていますが、コンストラクターはどうですか? 私にとって典型的なユースケースは工場です。
Class::new
コンストラクタの関数インスタンス::ClassNameは、ファクトリ関数のように を使用するだけで取得できます。
::ClassName