Wednesday 27 July 2016

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

C Sharp Constructure Tutorial

C# Constructure Program 

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

C Sharp Overriding Tutorial

C# Overriding Program

 class test
    {
        public void show()
        {
            Console.WriteLine("\nInside of test class\n");
        }
    }
    class best : test