Mayooran Navamany

Mayooran Navamany

  • 386
  • 3.8k
  • 65.9k

C# Properties

Aug 16 2022 4:46 PM

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; }
    }
}


Answers (2)