Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace DefiningClasses
- {
- class Employee
- {
- private string name;
- private decimal salary;
- private string position;
- private string department;
- private string email;
- private int age;
- public Employee(string name, decimal salary, string position, string department)
- {
- Name = name;
- Salary = salary;
- Position = position;
- Department = department;
- Email = "n/a";
- Age = -1;
- }
- public string Name { get; set; }
- public decimal Salary { get; set; }
- public string Position { get; set; }
- public string Department { get; set; }
- public string Email { get; set; }
- public int Age { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement