using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication10
{
class Program
{
static void Main(string[] args)
{
HR a = new HR();
Sales b = new Sales();
manger c = new manger();
string d = Console.ReadLine();
if (d == "HR")
{
a.pay();
Console.ReadKey();
}
if (d == "Sales")
{
b.pay();
Console.ReadKey();
}
if (d == "manger")
{
c.pay();
Console.ReadKey();
}
}
}
public abstract class user
{
public abstract void pay();
}
public class HR:user
{
public override void pay()
{
Console.WriteLine("4000");
}
}
public class Sales : user
{
public override void pay()
{
Console.WriteLine("2000") ;
}
}
public class manger : user
{
public override void pay()
{
Console.WriteLine("10000");
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication10
{
class Program
{
static void Main(string[] args)
{
HR a = new HR();
Sales b = new Sales();
manger c = new manger();
string d = Console.ReadLine();
if (d == "HR")
{
a.pay();
Console.ReadKey();
}
if (d == "Sales")
{
b.pay();
Console.ReadKey();
}
if (d == "manger")
{
c.pay();
Console.ReadKey();
}
}
}
public abstract class user
{
public abstract void pay();
}
public class HR:user
{
public override void pay()
{
Console.WriteLine("4000");
}
}
public class Sales : user
{
public override void pay()
{
Console.WriteLine("2000") ;
}
}
public class manger : user
{
public override void pay()
{
Console.WriteLine("10000");
}
}
}