Ok So Im writing a app which would pick the 'cheapest' plan for a consumer. While writing this I came across something puzzling to me. Why is it starting after the default constructor, the first CellPlan has three arguments passed too it and then the next one two and then one, why can the number be flipped around and be 1,2,3 or: 2,3,1 arguments (after the default constructor)?

//default constructor
        public CellPlan()
        { 
        }

        public CellPlan(string name, int zip, int minutes)
        {
            customerName = name;
            zipCode = zip;
            numberOfMinutes = minutes;
        } // end of CellPlan constructor

        public CellPlan(string name, int zip)
        {
            customerName = name;
            zipCode = zip;
        } // end of CellPlan constructor

        public CellPlan(int minutes)
        {
            numberOfMinutes = minutes;
        }

Thanks Again for all the help as always

thanks @jbrock31 !! helped me a lot!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.