Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
රත්නපුර පානදුර ප්රධාන මාර්ගයට මුහුණලා නිවසක් මාසික කුලී පදනමට
LPMAC
Updated:
Yesterday at 9:45 PM
Cinnamoroll Soft Toy – Cute & Cuddly Plush
anil1961
Updated:
Monday at 4:59 AM
Google Pixel 9 Pro
vgp
Updated:
Thursday at 5:57 PM
Ad icon
Jobreceive.com for sale
Blogerwiki
Updated:
Sep 29, 2026
Post Your Vehicle for Sale — FREE! - https://libro.lk
Kalu_Puth
Updated:
Sep 29, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Interview Questions වලට Support එකක් දෙමුද ?
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="saja" data-source="post: 24136129" data-attributes="member: 14999"><p><span style="font-size: 12px"><u>overloading</u></span></p><p><span style="font-size: 12px">You can not overload the function by differ only their return type . You can only overload the function in following ways</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"> <ul> <li data-xf-list-type="ul">Parameter types</li> <li data-xf-list-type="ul">Number of parameters</li> <li data-xf-list-type="ul">Order of the parameters declared in the method</li> </ul><p>You can not come to know which function is actually called (if it was possible).</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">public int Bar(int a)</span></p><p><span style="font-size: 12px"> {</span></p><p><span style="font-size: 12px"> return 10;</span></p><p><span style="font-size: 12px"> }</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"> public string Bar(int a)</span></p><p><span style="font-size: 12px"> {</span></p><p><span style="font-size: 12px"> return "10";</span></p><p><span style="font-size: 12px"> }</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">error : already defines a member called 'Bar' with the same parameter types </span></p></blockquote><p></p>
[QUOTE="saja, post: 24136129, member: 14999"] [SIZE="3"][U]overloading[/U] You can not overload the function by differ only their return type . You can only overload the function in following ways [LIST] [*]Parameter types [*]Number of parameters [*]Order of the parameters declared in the method [/LIST] You can not come to know which function is actually called (if it was possible). public int Bar(int a) { return 10; } public string Bar(int a) { return "10"; } error : already defines a member called 'Bar' with the same parameter types [/SIZE] [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom