Professional Documents
Culture Documents
the
implementatio
n of Main()
to get below
output
Sample Output :
Employee Details are
EmpId is = 100
Emp Name is = AAA
Emp Salary is = 12345
Emp Bonus is = 3000
Emp streetName is = xxx
Emp streetName is = Bangalore
Note : Create object of the Sales class in the Main() and initialize all
necessary variables with the help of member functions defined inside the
class.The program doesnot take any input data .Argument for all member
functions is hard coded in the program to get the required output
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LabExersice
{
class Program
{
float bonus;
}
public class Address
{
protected String streetName = "xx";
protected String cityName = "cc";
public String getStreetName()
{
return streetName;
}
public void setStreetName(String streetName)
{
this.streetName = streetName;
}
public String getCityName()
{
return cityName;
}
public void setCityName(String cityName)
{
this.cityName = cityName;
}