コード例 #1
0
 public override double precio()
 {
     return(20 + _pizza.precio());
 }
コード例 #2
0
 private void btnPeperoni_Click(object sender, EventArgs e)
 {
     p = new CndPeperoni(p);
     lblVistaCondimento.Text = p.Descripcion();
     lblVistaPrecio.Text     = p.precio().ToString();
 }
コード例 #3
0
 private void btnSalchicha_Click(object sender, EventArgs e)
 {
     p = new CndSalchicha(p);
     lblVistaCondimento.Text = p.Descripcion();
     lblVistaPrecio.Text     = p.precio().ToString();
 }
コード例 #4
0
 private void btnBRelleno_Click(object sender, EventArgs e)
 {
     p = new BordeRelleno();
     lblVistaBorde.Text  = p.Descripcion();
     lblVistaPrecio.Text = p.precio().ToString();
 }