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); }
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); }
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(); }
public static void Main(string [] args) { farhan obj = new farhan(); farhan obj2 = new farhan(); }