Exemplo n.º 1
0
        private static void AvecChangementTypeRetour()
        {
            ChangementTypeRetour changementType = new ChangementTypeRetour();
            IMonInterface        monInterface   = changementType;
            string hello = changementType.Display();

            //hello = monInterface.Display();
        }
Exemplo n.º 2
0
        private static void AvecImplementationExplicite()
        {
            ImplementationExplicite unObjet      = new ImplementationExplicite();
            IMonInterface           monInterface = unObjet;

            //unObjet.Display();
            monInterface.Display();
        }
Exemplo n.º 3
0
        private static void AvecMasque()
        {
            ClasseMasquee masquee      = new ClasseMasquee();
            IMonInterface monInterface = masquee;

            masquee.DisplayInEnglish();
            masquee.DisplayInFrench();
            masquee.DisplayInOok();
            //masquee.Display();

            monInterface.Display();
        }