Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Araba arb = new Araba();

            arb.Marka = "Merco";
            arb.Model = "E250";
            arb.Motor = 2.00M;
            MessageBox.Show(arb.ToString());
        }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Araba arb = new Araba("BMW", "5.20", 2.00M);

            MessageBox.Show(arb.ToString());

            Araba arb2 = new Araba("BMW", "5.20", 2.00M, "Sedan");

            MessageBox.Show(arb2.ToString());
        }