예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var pizza = new Pizza();

            MessageBox.Show("Pizza creada");

            var refresco = new Refresco();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var pizza = new Pizza();

            MessageBox.Show("Pizza creada");

            var refresco = new Refresco();

            pizza.Refresco = refresco; //si eliminas pizza el refresco aun hay y asi
        }