示例#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)");
 }
示例#2
0
 public House(Basement basement, Walls walls, Door door)
 {
     this.door = new Door();
     Console.WriteLine("Overload constructor (Basement, Walls, Door)");
 }
示例#3
0
 public House(Basement basement, Walls walls, Door door, Window window)
 {
     this.window = new Window();
     Console.WriteLine("Overload constructor (Basement, Walls, Door, Window)");
 }
示例#4
0
 public House(Basement basement, Walls walls)
 {
     this.walls = new Walls();
     Console.WriteLine("Overload constructor (Basement, Walls)");
 }