Beispiel #1
0
 public House(Basement basement, Walls walls, Door door, Window window, Roof roof)
 {
     this.roof = new Roof();
     Console.WriteLine("Overload constructor (Basement, Walls, Door, Window, Roof)");
 }
Beispiel #2
0
 public House(Basement basement, Walls walls, Door door)
 {
     this.door = new Door();
     Console.WriteLine("Overload constructor (Basement, Walls, Door)");
 }
Beispiel #3
0
 public House(Basement basement, Walls walls, Door door, Window window)
 {
     this.window = new Window();
     Console.WriteLine("Overload constructor (Basement, Walls, Door, Window)");
 }
Beispiel #4
0
 public House(Basement basement, Walls walls)
 {
     this.walls = new Walls();
     Console.WriteLine("Overload constructor (Basement, Walls)");
 }