예제 #1
0
    public static void Main(string[] args)
    {
        Geeks g1 = new Geeks("june", 2018);
        Geeks g2 = new Geeks(g1);

        Console.WriteLine("month is {0}", g2.month);
    }
    public static void Main(String [] args)
    {
        int x = 32;

        Console.WriteLine("Value of x is " + x);
        Geeks gfg = new Geeks();

        Console.WriteLine("Value of y is " + gfg.y);
    }
예제 #3
0
    public static void Main(string[] args)
    {
        Geeks obj = new Geeks();

        addnum del_obj1 = new addnum(obj.sum);
        addnum del_obj2 = new addnum(obj.subtract);

        del_obj1(100, 40);
        del_obj2(100, 99);
    }
예제 #4
0
        static void Main(string[] args)
        {
            Geeks s = new Geeks("niuefiujers", 18);

            s.Display();
        }
예제 #5
0
 public Geeks(Geeks s)
 {
     month = s.month;
     year  = s.year;
 }