protected void Button1_Click(object sender, EventArgs e) { /* Araba tuncayinarabasi = new Araba(); * tuncayinarabasi.renk = "yeşil"; * tuncayinarabasi.marka = "ford"; * tuncayinarabasi.motorgucu = 1400; * Response.Write(tuncayinarabasi.bilgiver()); * * Araba kamilinarabasi = new Araba(); * Response.Write(kamilinarabasi.bilgiver());*/ Araba suzanarabasi = new Araba("siyah", 2500, "alfa", 5); suzanarabasi.hizlan(); suzanarabasi.hizlan(); suzanarabasi.hizlan(Convert.ToInt32(hiztext.Text)); suzanarabasi.yavasla(); suzanarabasi.yavasla(20); Response.Write(suzanarabasi.bilgiver()); /* Araba omerinarabasi = suzanarabasi; * omerinarabasi.Setrenk("yeşil"); * Response.Write(omerinarabasi.Getrenk()); * omerinarabasi.Motorgucu = 1600; * Response.Write("omerin arabası=" + omerinarabasi.bilgiver()); * Response.Write("suzanın arabası" + suzanarabasi.bilgiver());*/ }
protected void Button1_Click(object sender, EventArgs e) { Araba tuncayinarabasi = new Araba(); tuncayinarabasi.Marka = "reno"; tuncayinarabasi.renk = "kırmızı"; tuncayinarabasi.Motorgucu = 1600; tuncayinarabasi.Yolcukapasite = 4; tuncayinarabasi.hizlan(); Response.Write("tuncayın arabasının bilgileri:" + tuncayinarabasi.Marka + tuncayinarabasi.Motorgucu + tuncayinarabasi.renk + tuncayinarabasi.Yolcukapasite + tuncayinarabasi.Hiz); Araba ayseninarabasi = new Araba(); ayseninarabasi.Marka = "porş"; ayseninarabasi.renk = "siyah"; ayseninarabasi.Motorgucu = 4000; ayseninarabasi.Yolcukapasite = 2; ayseninarabasi.Hiz = 100; Response.Write(ayseninarabasi.bilgiver()); }