Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            System.Console.WriteLine("Hello Interfaces");

            SingleConcrete  refSample  = new SingleConcrete();
            SingleInterface interface1 = new SingleConcrete();

            interface1.xyz();
            refSample.xyz();
            Console.ReadLine();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This is sample from implementation of single interface
        /// </summary>
        /// <returns></returns>
        public static SingleConcrete SingleInterface()
        {
            System.Console.WriteLine("Hello Interfaces");

            SingleConcrete  refSample  = new SingleConcrete();
            SingleInterface interface1 = new SingleConcrete();

            interface1.xyz();
            refSample.xyz();
            Console.ReadLine();

            return(new SingleConcrete());
        }