Esempio n. 1
0
    public Class1()     // constructor of Class 1
    {
        Class2 newclass2 = new Class2();

        newclass2.Add(1, 2);
        // Get this Add method by This.Add ??
        // Not able to fetch the Add method here.
    }
Esempio n. 2
0
 public Class1()
 {
     Class2.Add(1, 2);
 }
Esempio n. 3
0
    public Class1() // constructor of Class1
    {
        Class2 cs2 = new Class2();

        cs2.Add(4, 5);
    }