private int BasicSalary, HRA, Deductions, Allowance, Insurance, NetSalary;
Console.Write("Employee Pay Bill\n");
public void setMembers(){
this.Deductions = this.Insurance+this.Allowance;
this.NetSalary = this.BasicSalary + this.HRA - this.calcDed();
Console.WriteLine("Basic Salary = "+this.BasicSalary);
Console.WriteLine("HRA = "+this.HRA);
Console.WriteLine("Deductions = "+this.calcDed());
Console.WriteLine("Net Salary = "+this.calcNet());
public static void Main()
Employee e = new Employee();