Question : State whether below overload methods will give compilation error or not ?
Class Test
{
void SetX(ref int x)
{
x = 1;
}
void SetX(out int x)
{
X = 2;
}
}
Answer :
Practise makes perfect
Class Test
{
void SetX(ref int x)
{
x = 1;
}
void SetX(out int x)
{
X = 2;
}
}
Answer :