Wednesday 27 July 2016

C Sharp Interface Tutorial

C# Interface Program

/* Error Code Attemt to multiple inheritance
     class a
    {
    }
    class b
    {
    }
    class c:a :b

C Sharp Inheritance Tutorial

C# Inheritance Program 

 class test
    {
       
        public void show()
        {
            Console.WriteLine("\nTest Calss");
        }
    }

C Sharp Constructure Inheritance Tutorial

C# Constructure Inheritance Program 

class test
    {
        int a, b;
        public test(int x,int y)
        {
            a = x;
            b = y;
        }

C Sharp Copy Constructure Tutorial

C# Copy Constructure Program

class test
    {
        String nm1, nm2;
        public test(string nm1, string nm2)
        {
            this.nm1 = nm1;
            this.nm2 = nm2;
        }
        public test(test ob) //Copy C