Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            var Man = new Man();
            var Kart = new Kart();
            var Alien = new Alien();

            


        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            //Instatiating
            var man   = new Man();
            var kart  = new Kart();
            var alien = new Alien();

            // Assigning properties through inheretance
            alien.color = "Yellow";
            man.color   = "Black";
            alien.color = "Green";
        }
Exemplo n.º 3
0
        public static void Main(string[] args)
        {
            var man   = new Man();
            var kart  = new Kart();
            var alien = new Alien();

            var worker = new FactoryWorker();

            worker.Count(4);
            worker.Count(5);
            worker.Count(4.5f);
            Console.WriteLine("Press any key to continue");
            Console.ReadKey();
        }