4
Answers

Set Property

Vijay

Vijay

11y
965
1
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)