Slide 71
Slide 71 text
class Hoge {
final Fuga fuga;
final Piyo piyo;
Hoge() {
this(new Fuga(), new Piyo());
}
Hoge(Fuga fuga, Piyo piyo) {
this.fuga = fuga;
this.piyo = piyo;
...
ۭΠϯελϯεΛ࡞Δલʹཱͪࢭ·Δ
ຊʹσϑΥϧτίϯετϥΫλΛ༻ͨ͠ΠϯελϯεͰ͍͍ͷʁ
σϑΥϧτίϯετϥΫλͰੜ͞ΕΔΠϯελϯεશʹಈ࡞͢ΔΑ͏ʹ࡞ΒΕͯΔͷʁ
୯ͳΔͷίϯςφʹͳͬͯͳ͍ʁͦͷίʔυಡΈ͍͢ʁ