i have a sample code like this for Overloading property in C++
i have defined these functions
Expand|Select|Wrap|Line Numbers
- void fun(short a1)
- {
- //to do code here
- }
- void fun(int a1)
- {
- //to do code here
- }
Expand|Select|Wrap|Line Numbers
- fun(10)
Similarly if i have functions like this
Expand|Select|Wrap|Line Numbers
- void fun(long a1)
- {
- //to do code here
- }
- void fun(int a1)
- {
- //to do code here
- }
Expand|Select|Wrap|Line Numbers
- fun(10)
plz explain me with this example.
Thanks & Regards,
Ravi kiran