title: Delegate using different methods of different classes
body: <pre><code>using System;
  
   delegate int NumberChanger(int n);
   namespace DelegateAppl
   {
     class TestDelegate
     {
       static int num = 10;
      public static int AddNum(int p)
       {
        num += p;
        return num;
       }
  
       public static int MultNum(int q)
      {
        num *= q;
       return num;
      }
    public static int getNum()
    {
       return num;
    }
  
    static void Main(string[] args)
    {
       //create delegate instances
       NumberChanger nc1 = new NumberChanger(AddNum);
       NumberChanger nc2 = new NumberChanger(MultNum);
  
       //calling the methods using the delegate objects
       nc1(25);
       Console.WriteLine("Value of Num: {0}", getNum());
       nc2(5);
       Console.WriteLine("Value of Num: {0}", getNum());
       Console.ReadKey();
    }
  }
  </code></pre>
  
  <p>in the above code function called and calling function are in same class.... can we use like both in seperate classes?</p>
  
  <p>if its possible please give an example ......</p>