Beispiel #1
0
    public static void Main()
    {
        CustomerClass c1 = new CustomerClass("Geetha", "Yedida");

        c1.CustomerClassMethod();

        // a default constructor can be created with no parameters being passed

        CustomerClass c2 = new CustomerClass();

        c2.CustomerClassMethod();

        // this is called constructor overloading with varying parameters or type of fields passing
    }