-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Jigs
Message 2 in Discussion
Hi , <o:p></o:p>
<o:p></o:p> Overloading: a feature that allows an object to have different meanings
depending on its context.
Have u ever thought the ability to use + on different data types
Eg: 10+20 �Hello� + �World�
One does adding of number and another concatenation of string. Its operator
overloading
Operators are really functions, They have arguments, They return values ,The only
difference is that their names take on a specific form: operator+ , operator[] etc.
<o:p></o:p>
An overloaded function is one, which has the same name but several different forms.
For example, we overloaded the constructor for the Date class
default Date d;
initializing Date d(9,22,99);
copy Date d1(d);
other Date d(�Sept.,22,1999);
<o:p></o:p>
<o:p></o:p>
Overloading can greatly simplify your life and the lives of other developers. This
technique consolidates the call interfaces for many similar programs into a single
module name. This process transfers the burden of knowledge from the developer to the
software. You do not have to try to remember, for instance, the six different names
for programs adding values (dates, strings, numbers, etc.)
Instead, you simply tell the compiler that you want to add and pass it the value you
want added. oo languages figure out what you want to do and they do it for you
Regards,
Jignesh Desai
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]