Esempio n. 1
0
        static void Main(string[] args)
        {
            Personne  p1 = new Personne("Madani");
            Stagiaire s1 = new Stagiaire("Chami");
            Formateur f1 = new Formateur("ESSARRAJ");


            Console.WriteLine(p1);
            Console.WriteLine(s1);
            Console.WriteLine(f1);



            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            //Individu I1 = new Individu();
            //I1.CIN = "LA236548";
            //I1.Nom = "Med";
            //I1.Prénom = "Rachid";
            //I1.DateNaissance=DateTime.Parse("14/06/1988");
            //I1.Adresse = "Larache";
            //Console.WriteLine(I1.ToString());


            //Individu[] T = new Individu[5];
            //for (int i = 0; i < 5; i++)
            // { T[i] = new Individu(); }
            // foreach (Individu Ind in T)
            //  {
            //    Ind.CIN = "LA236548";
            //    Ind.Nom = "Med";
            //    Ind.Prénom = "Rachid";
            //    Ind.DateNaissance = DateTime.Parse("14/06/1988");
            //    Ind.Adresse = "Larache";
            //    Console.WriteLine(Ind.ToString());

            //  }

            Stagiaire S = new Stagiaire();

            S.CIN             = "LA236548";
            S.Nom             = "Med";
            S.Prénom          = "Rachid";
            S.DateNaissance   = DateTime.Parse("14/06/1988");
            S.Adresse         = "Larache";
            S.Filière         = "TDI";
            S.MoyenneGénérale = 14.35f;
            Console.WriteLine(S.ToString());


            Console.ReadKey();
        }