예제 #1
0
 static ChemicalFactory2()
 {
     _chemicals["wegiel"]  = new ChemicalImpl("Wêgiel", "C", 12);
     _chemicals["siarka"]  = new ChemicalImpl("Siarka", "S", 32);
     _chemicals["saletra"] = new ChemicalImpl("Saletra", "KNO3", 101);
     //...
 }
예제 #2
0
 static ChemicalFactory2()
 {
     _chemicals["carbon"]    = new ChemicalImpl("Carbon", "C", 12);
     _chemicals["sulfur"]    = new ChemicalImpl("Sulfur", "S", 32);
     _chemicals["saltpeter"] = new ChemicalImpl("Saltpeter", "KN03", 101);
     //...
 }