TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vaibhav Hedaoo
1.5k
263
6.8k
using default value with same method name
Dec 14 2020 10:05 PM
using
System;
public
class
Greet
{
public
void
Hello(
int
a,
string
j=
"j"
)
{
Console.WriteLine(
"1"
);
}
public
void
Hello(
int
a)
{
Console.WriteLine(
"2"
);
}
}
public
class
Program
{
public
static
void
Main()
{
Greet obj=
new
Greet();
obj.Hello(1);
Console.WriteLine(
"Hello World"
);
}
}
Which method gets called and why??
Reply
Answers (
1
)
How to assign Json array into model in asp.net ?
value cannot be null. parameter name string