Vijay

Vijay

  • NA
  • 150
  • 90.4k

Set Property

Aug 2 2013 3:06 AM
private float fsalary =20000;

public float Salary
        {
            set { fsalary = 500102; }
        }

Emp e=new Emp();
Console.WriteLine("The Emp salary is:{0}",e.Salary);

How to access set property?

Answers (4)