Wednesday, January 30, 2013

Compiler questions

let's say you had in a class overloaded procedures thus


   protected void click(object o)
        {

        }

        protected void click(string  o)
        {

        }
 and code thus

       protected void Button8_Click(object sender, EventArgs e)
        {
            string s = "fdgdfg";
            click(s);
            click(sender);
        }

would it compile and why?

No comments:

Post a Comment