Exemple #1
0
    public static void Main(string[] args)
    {
        farhan obj = new farhan();
        int    i   = 5;

        Console.WriteLine("Before calling the function : " + i);
        obj.opt(out i);
        Console.WriteLine("After calling the function : " + i);
    }
Exemple #2
0
    public static void Main(string [] args)
    {
        int val = 15;

        Console.WriteLine("Value before calling the function : " + val);
        farhan obj = new farhan();

        obj.mul(ref val);
        Console.WriteLine("Value after calling the function : " + val);
    }
Exemple #3
0
    public static void Main(string[] args)
    {
        farhan obj  = new farhan();
        farhan obj2 = new farhan();

        obj.getdata(1, "farhan");
        obj.showdata();

        obj2.getdata(2, "nitish");
        obj2.showdata();
    }
Exemple #4
0
 public static void Main(string [] args)
 {
     farhan obj  = new farhan();
     farhan obj2 = new farhan();
 }