Fill in the blanks to create a read-only property X. The return value of the accessor should be the square of x.
class A
{
private int x=8;
public int X
{
get { return x ____ x; }
}
}

Fill in the blanks to create a read-only property X. The return value of the accessor should be the square of x.
class A
{
private int x=8;
public int X
{
get { return x ____ x; }
}
}

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Aug 16, 2022, 6:14 PM
Vishal YelvePosted Aug 16, 2022, 5:13 PM