Buy Questpond's video subscriptions on
huge discount
.
Online: 4026
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
OOPS
>
Loading ...
What will happen,if we compile below function:-
private double sum(int a, int b)
{
}
private int sum(int i, int j)
{
}
Note:- In above function return type is different.
1st function return type is double and,
2nd function return type is int
Posted by
vishalneeraj-24503
on 11/29/2013 | Category:
OOPS Interview questions
| Views: 4147 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
It will throw an error saying that:-
"Type '_Default' already defines a member called 'sum' with the same parameter types"
Here _Default is a page name.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What will happen,if we compile below function? ...
Next > :
What will happen,if we compile below function? ...
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
What will happen,if we compile below function? private double sum(i ...
What are the points which fulfill Function Overloading?
Does Function Overloading depend on Return Type?
Can we write Break or Continue statement outside of For loop?
Below C# function is of which type? public static Calculate operato ...
Can Function Overriding be defined in Same Class?
Can we define Method Overloading in different classes?
Same Function Name but Different Signature or Parameter is called as?
Latest Interview Questions
Which processes implemented sandbox solution?
Which of the following files/programs are not removed by the uninstall ...
What is compatibility level of SQL server 2012?
DBCC SHRINKDATABASE (UserDB, 10); What is the unit of second paramet ...
We can configure individuals to be alerted about sql server agent jobs ...
Which of the following built in tool allows you to changes services ac ...
Which of the following is FALSE regarding the tempdb database?
We can RECOMPILE a stored procedure in SQL server. Which of the follow ...
More ...