Exemplo n.º 1
0
 public static Oxygen GetElement()
 {
     if (o == null)
     {
         o = new Oxygen();
     }
     return(o);
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     Oxygen        oxs = Oxygen.GetElement();
     Carbon        c   = new Carbon();
     CarbonDioxide co2 = oxs.SustainLife(c); //fabryka ew builder, bo zmniejsza ilość węgla
     HumanCell     h1  = new HumanCell();    //klon
     HumanCell     h2  = h1.Divide();
 }
Exemplo n.º 3
0
 public override CarbonDioxide Breathe(Oxygen O, Carbon C)
 {
     return(O.SustainLife(C));
 }
Exemplo n.º 4
0
 public CarbonDioxide(Oxygen _O, Carbon _C)
 {
     _O.amountOfAtoms = -2;
     _C.amountOfAtoms--;
 }
Exemplo n.º 5
0
Arquivo: Cell.cs Projeto: Krenelek/C1
 abstract public CarbonDioxide Breathe(Oxygen O, Carbon C);