static void Main(string[] args) { //Ma obj = new Ma(); //obj.print(); var name = "Roshan"; VarMa a = new VarMa(); a.x = 10; a.y = 20; Console.WriteLine(a.x + " " + a.y); VarMa b = new VarMa(a); Console.WriteLine(b.x + " " + b.y); Console.ReadLine(); }
public VarMa(VarMa abc) { this.x = abc.x; this.y = abc.y; }