public Biont create(int code) { Biont biont = null; switch (code) { case 0: biont = new CherryBlossom(); break; case 1: biont = new PeachBlossom(); break; case 2: biont = new PlumBlossom(); break; } return biont; }
public Biont create(int code) { Biont biont = null; switch (code) { case 0: biont = new CherryBlossom(); break; case 1: biont = new PeachBlossom(); break; case 2: biont = new PlumBlossom(); break; } return(biont); }