public IReinforcingSteel CreateReinforcingSteel(ReinforcingSteelClass steelClass) { switch (steelClass) { case ReinforcingSteelClass.B500A: return(new B500ASteel(steelClass)); case ReinforcingSteelClass.B500SP: return(new B500SPSteel(steelClass)); case ReinforcingSteelClass.BST500S: return(new BST500SSteel(steelClass)); case ReinforcingSteelClass.RB500W: return(new RB500WSteel(steelClass)); default: throw new ArgumentException("The reinforcing steel class hasn't been implemented yet."); } }
public BST500SSteel(ReinforcingSteelClass steelClass) : base(steelClass) { }
public B500SPSteel(ReinforcingSteelClass steelClass) : base(steelClass) { }
protected ReinforcingSteel(ReinforcingSteelClass steelClass) { this.steelClass = steelClass; }
public RB500WSteel(ReinforcingSteelClass steelClass) : base(steelClass) { }