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.
誰かがこのコードが何をするのか説明できますか?
Kartenstapel stapel1 = new Kartenstapel(new Karte[] { });
*KartenstapelとKarteはクラスです。
推測しかありませんが、よくわかりません。作成された空のオブジェクトですか?
メモありがとうございます。
これは、の空の配列Karteが作成され、コンストラクターへの引数として与えられ、KartenstapelコンストラクターがKartenstapelオブジェクトを作成することを意味します。
Karte
Kartenstapel
KartenStapelオブジェクトを作成し、ゼロ要素を含むKartesの配列を渡します。