> From: MB Software Solutions <[EMAIL PROTECTED]> > Date: Tue, June 27, 2006 7:56 am > To: [email protected] > > [EMAIL PROTECTED] wrote: > > >Overloading? > > > >Like this: > > > >void setanswer(String answer){ > > } > > > >void setanswer(String answer, String title){ > > } > > > >or This? > > > >void setanswer(String answer){ > > } > > > >void setanswer(String title){ > > } > > > > > > > > Isn't this last example invalid, because both are string parms? > Overloading is great when the parms differ. I don't know how the > compiler would be able to tell in your last example which > function/procedure to call since both are the same type?
Yes your compiler will throw that as an error in a build, actually you will see it in red squiggly as your trying to create it. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

