Beispiel #1
0
        public Motorlu()
        {
            Arac arc = new Arac(100, 10);

            arc.renk         = "Kirmizi";
            arc.lastikSayisi = 5;

            this.HareketEt(50);
            this.Hizlandir();

            // runtime'a gecene kadar dynamic tipinin ne oldugunu bilmez
            //dynamic a = "string"; // late
            // compile time de ne oldugu bellidir. Performasa bir etkisi yoktur
            var    b = "string";
            string c = "string"; //early

            //Console.WriteLine(a + " " + b + " " + c);
        }
Beispiel #2
0
 public void Hizlandir()
 {
     Arac arc = new Arac(100, 10);
 }